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

Function isData

conn.go:200–202  ·  view source on GitHub ↗
(frameType int)

Source from the content-addressed store, hash-verified

198}
199
200func isData(frameType int) bool {
201 return frameType == TextMessage || frameType == BinaryMessage
202}
203
204var validReceivedCloseCodes = map[int]bool{
205 // see http://www.iana.org/assignments/websocket/websocket.xhtml#close-code-number

Callers 3

beginMessageMethod · 0.85
NextWriterMethod · 0.85
WritePreparedMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected