github.com/coder/websocket.CloseError.Code (field)
14 uses
github.com/coder/websocket (current package)
close.go#L66: Code StatusCode
close.go#L71: return fmt.Sprintf("status = %v and reason = %q", ce.Code, ce.Reason)
close.go#L81: return ce.Code
close.go#L172: Code: code,
close.go#L178: if ce.Code != StatusNoStatusRcvd {
close.go#L257: Code: StatusNoStatusRcvd,
close.go#L266: Code: StatusCode(binary.BigEndian.Uint16(p)),
close.go#L270: if !validWireCloseCode(ce.Code) {
close.go#L271: return CloseError{}, fmt.Errorf("invalid status code %v", ce.Code)
close.go#L300: Code: StatusInternalError,
close.go#L314: if !validWireCloseCode(ce.Code) {
close.go#L315: return nil, fmt.Errorf("status code %v cannot be set", ce.Code)
close.go#L319: binary.BigEndian.PutUint16(buf, uint16(ce.Code))
read.go#L359: _ = c.writeClose(ce.Code, ce.Reason)
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |