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

Function isTextBinaryFrame

lib/web/websocket/util.js:185–187  ·  view source on GitHub ↗

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

(opcode)

Source from the content-addressed store, hash-verified

183 * @returns {boolean}
184 */
185function isTextBinaryFrame (opcode) {
186 return opcode === opcodes.TEXT || opcode === opcodes.BINARY
187}
188
189/**
190 *

Callers 2

isValidOpcodeFunction · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…