MCPcopy
hub / github.com/coder/websocket / Error

Method Error

close.go:70–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (ce CloseError) Error() string {
71 return fmt.Sprintf("status = %v and reason = %q", ce.Code, ce.Reason)
72}
73
74// CloseStatus is a convenience wrapper around Go 1.13's errors.As to grab
75// the status code from a CloseError.

Callers 9

TestWasmFunction · 0.45
testMaskFunction · 0.45
TestCloseErrorFunction · 0.45
acceptFunction · 0.45
writeErrorMethod · 0.45
readMethod · 0.45
ServeHTTPMethod · 0.45
TestGinFunction · 0.45
publishHandlerMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestWasmFunction · 0.36
testMaskFunction · 0.36
TestCloseErrorFunction · 0.36
ServeHTTPMethod · 0.36
TestGinFunction · 0.36