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

Method constructor

packages/socket.io/lib/namespace.ts:180–188  ·  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

178 * @param name
179 */
180 constructor(
181 server: Server<ListenEvents, EmitEvents, ServerSideEvents, SocketData>,
182 name: string,
183 ) {
184 super();
185 this.server = server;
186 this.name = name;
187 this._initAdapter();
188 }
189
190 /**
191 * Initializes the `Adapter` for this nsp.

Callers

nothing calls this directly

Calls 1

_initAdapterMethod · 0.95

Tested by

no test coverage detected