MCPcopy
hub / github.com/gorilla/websocket / isValidReceivedCloseCode

Function isValidReceivedCloseCode

conn.go:223–225  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

221}
222
223func isValidReceivedCloseCode(code int) bool {
224 return validReceivedCloseCodes[code] || (code >= 3000 && code <= 4999)
225}
226
227// BufferPool represents a pool of buffers. The *sync.Pool type satisfies this
228// interface. The type of the value stored in a pool is not specified.

Callers 1

advanceFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected