MCPcopy Index your code
hub / github.com/socketio/socket.io / onconnection

Method onconnection

lib/index.ts:663–671  ·  view source on GitHub ↗

* Called with each incoming transport connection. * * @param {engine.Socket} conn * @return self * @private

(conn)

Source from the content-addressed store, hash-verified

661 * @private
662 */
663 private onconnection(conn): this {
664 debug("incoming connection with id %s", conn.id);
665 const client = new Client(this, conn);
666 if (conn.protocol === 3) {
667 // @ts-ignore
668 client.connect("/");
669 }
670 return this;
671 }
672
673 /**
674 * Looks up a namespace.

Callers

nothing calls this directly

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected