MCPcopy
hub / github.com/nodejs/undici / isValidOpcode

Function isValidOpcode

lib/web/websocket/util.js:194–196  ·  view source on GitHub ↗

* * @param {number} opcode * @returns {boolean}

(opcode)

Source from the content-addressed store, hash-verified

192 * @returns {boolean}
193 */
194function isValidOpcode (opcode) {
195 return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode)
196}
197
198/**
199 * Parses a Sec-WebSocket-Extensions header value.

Callers 1

runMethod · 0.85

Calls 3

isTextBinaryFrameFunction · 0.85
isContinuationFrameFunction · 0.85
isControlFrameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…