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

Function isControl

conn.go:196–198  ·  view source on GitHub ↗
(frameType int)

Source from the content-addressed store, hash-verified

194}
195
196func isControl(frameType int) bool {
197 return frameType == CloseMessage || frameType == PingMessage || frameType == PongMessage
198}
199
200func isData(frameType int) bool {
201 return frameType == TextMessage || frameType == BinaryMessage

Callers 3

WriteControlMethod · 0.85
beginMessageMethod · 0.85
flushFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected