MCPcopy
hub / github.com/socketio/socket.io / #sendPacket

Method #sendPacket

examples/basic-websocket-client/src/index.js:195–197  ·  view source on GitHub ↗
(packet)

Source from the content-addressed store, hash-verified

193 }
194
195 #sendPacket(packet) {
196 this.#send(EIOPacketType.MESSAGE + encode(packet));
197 }
198
199 #doConnect() {
200 this.#sendPacket({ type: SIOPacketType.CONNECT });

Callers 3

#onConnectMethod · 0.95
#doConnectMethod · 0.95
emitMethod · 0.95

Calls 2

#sendMethod · 0.95
encodeFunction · 0.70

Tested by

no test coverage detected