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

Method onOpen

packages/engine.io-client/lib/socket.ts:989–998  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

987 private _upgrades: string[] = [];
988
989 override onOpen() {
990 super.onOpen();
991
992 if ("open" === this.readyState && this.opts.upgrade) {
993 debug("starting upgrade probes");
994 for (let i = 0; i < this._upgrades.length; i++) {
995 this._probe(this._upgrades[i]);
996 }
997 }
998 }
999
1000 /**
1001 * Probes a transport.

Callers 3

doOpenMethod · 0.45
addEventListenersFunction · 0.45
callbackFunction · 0.45

Calls 2

_probeMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected