MCPcopy Create free account
hub / github.com/socketio/socket.io / constructor

Method constructor

lib/namespace.ts:165–173  ·  view source on GitHub ↗

* Namespace constructor. * * @param server instance * @param name

(
    server: Server<ListenEvents, EmitEvents, ServerSideEvents, SocketData>,
    name: string
  )

Source from the content-addressed store, hash-verified

163 * @param name
164 */
165 constructor(
166 server: Server<ListenEvents, EmitEvents, ServerSideEvents, SocketData>,
167 name: string
168 ) {
169 super();
170 this.server = server;
171 this.name = name;
172 this._initAdapter();
173 }
174
175 /**
176 * Initializes the `Adapter` for this nsp.

Callers

nothing calls this directly

Calls 1

_initAdapterMethod · 0.95

Tested by

no test coverage detected