Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
#onConnect
Method · 0.95
#doConnect
Method · 0.95
emit
Method · 0.95
Calls
2
#send
Method · 0.95
encode
Function · 0.70
Tested by
no test coverage detected