Lines Matching refs:opcodes
5 const { parserStates, opcodes, states, emptyBuffer } = require('./constants')
67 this.#info.fragmented = !this.#info.fin && this.#info.opcode !== opcodes.CONTINUATION
69 …if (this.#info.fragmented && this.#info.opcode !== opcodes.BINARY && this.#info.opcode !== opcodes…
91 (this.#info.opcode === opcodes.PING ||
92 this.#info.opcode === opcodes.PONG ||
93 this.#info.opcode === opcodes.CLOSE) &&
99 } else if (this.#info.opcode === opcodes.CLOSE) {
119 closeFrame.createFrame(opcodes.CLOSE),
137 } else if (this.#info.opcode === opcodes.PING) {
148 this.ws[kResponse].socket.write(frame.createFrame(opcodes.PONG))
165 } else if (this.#info.opcode === opcodes.PONG) {
230 … if (!this.#info.fragmented || (this.#info.fin && this.#info.opcode === opcodes.CONTINUATION)) {