nhooyr.io/websocket.CloseError.Code (field)
14 uses
nhooyr.io/websocket (current package)
close.go#L67: Code StatusCode
close.go#L72: return fmt.Sprintf("status = %v and reason = %q", ce.Code, ce.Reason)
close.go#L82: return ce.Code
close.go#L147: Code: code,
close.go#L153: if ce.Code != StatusNoStatusRcvd {
close.go#L213: Code: StatusNoStatusRcvd,
close.go#L222: Code: StatusCode(binary.BigEndian.Uint16(p)),
close.go#L226: if !validWireCloseCode(ce.Code) {
close.go#L227: return CloseError{}, fmt.Errorf("invalid status code %v", ce.Code)
close.go#L256: Code: StatusInternalError,
close.go#L270: if !validWireCloseCode(ce.Code) {
close.go#L271: return nil, fmt.Errorf("status code %v cannot be set", ce.Code)
close.go#L275: binary.BigEndian.PutUint16(buf, uint16(ce.Code))
read.go#L324: c.writeClose(ce.Code, ce.Reason)
|
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |