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

Method adapter

packages/socket.io/lib/index.ts:450–459  ·  view source on GitHub ↗
(
    v?: AdapterConstructor,
  )

Source from the content-addressed store, hash-verified

448 public adapter(): AdapterConstructor | undefined;
449 public adapter(v: AdapterConstructor): this;
450 public adapter(
451 v?: AdapterConstructor,
452 ): AdapterConstructor | undefined | this {
453 if (!arguments.length) return this._adapter;
454 this._adapter = v;
455 for (const nsp of this._nsps.values()) {
456 nsp._initAdapter();
457 }
458 return this;
459 }
460
461 /**
462 * Attaches socket.io to a server or port.

Callers 12

constructorMethod · 0.95
createApplicationFunction · 0.95
worker.jsFile · 0.80
index.tsFile · 0.80
cluster-adapter.tsFile · 0.80
_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