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

Method _initAdapter

lib/namespace.ts:182–185  ·  view source on GitHub ↗

* Initializes the `Adapter` for this nsp. * Run upon changing adapter by `Server#adapter` * in addition to the constructor. * * @private

()

Source from the content-addressed store, hash-verified

180 * @private
181 */
182 _initAdapter(): void {
183 // @ts-ignore
184 this.adapter = new (this.server.adapter()!)(this);
185 }
186
187 /**
188 * Registers a middleware, which is a function that gets executed for every incoming {@link Socket}.

Callers 2

constructorMethod · 0.95
adapterMethod · 0.45

Calls 1

adapterMethod · 0.80

Tested by

no test coverage detected