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

Method bind

lib/index.ts:650–654  ·  view source on GitHub ↗

* Binds socket.io to an engine.io instance. * * @param engine engine.io (or compatible) server * @return self

(engine: BaseServer)

Source from the content-addressed store, hash-verified

648 * @return self
649 */
650 public bind(engine: BaseServer): this {
651 this.engine = engine;
652 this.engine.on("connection", this.onconnection.bind(this));
653 return this;
654 }
655
656 /**
657 * Called with each incoming transport connection.

Callers 15

attachAppMethod · 0.95
initEngineMethod · 0.95
setupMethod · 0.80
oFunction · 0.80
aFunction · 0.80
uFunction · 0.80
hFunction · 0.80
dFunction · 0.80
VFunction · 0.80
iFunction · 0.80
sFunction · 0.80

Calls 1

onMethod · 0.45

Tested by

no test coverage detected