MCPcopy
hub / github.com/socketio/socket.io / onOpen

Method onOpen

packages/engine.io-client/lib/socket.ts:580–587  ·  view source on GitHub ↗

* Called when connection is deemed open. * * @private

()

Source from the content-addressed store, hash-verified

578 * @private
579 */
580 protected onOpen() {
581 debug("socket open");
582 this.readyState = "open";
583 SocketWithoutUpgrade.priorWebsocketSuccess =
584 "websocket" === this.transport.name;
585 this.emitReserved("open");
586 this.flush();
587 }
588
589 /**
590 * Handles a packet.

Callers 1

onHandshakeMethod · 0.95

Calls 2

flushMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected