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

Method adapter

lib/index.ts:380–389  ·  view source on GitHub ↗
(
    v?: AdapterConstructor
  )

Source from the content-addressed store, hash-verified

378 public adapter(): AdapterConstructor | undefined;
379 public adapter(v: AdapterConstructor): this;
380 public adapter(
381 v?: AdapterConstructor
382 ): AdapterConstructor | undefined | this {
383 if (!arguments.length) return this._adapter;
384 this._adapter = v;
385 for (const nsp of this._nsps.values()) {
386 nsp._initAdapter();
387 }
388 return this;
389 }
390
391 /**
392 * Attaches socket.io to a server or port.

Callers 9

constructorMethod · 0.95
createApplicationFunction · 0.95
_initAdapterMethod · 0.80
utility-methods.tsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80
index.jsFile · 0.80

Calls 1

_initAdapterMethod · 0.45

Tested by

no test coverage detected