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

Function createAdapter

packages/socket.io-cluster-adapter/lib/index.ts:26–30  ·  packages/socket.io-cluster-adapter/lib/index.ts::createAdapter
(opts: Partial<ClusterAdapterOptions> = {})

Source from the content-addressed store, hash-verified

24 * @see https:class="cm">//nodejs.org/api/cluster.html
25 */
26export function createAdapter(opts: Partial<ClusterAdapterOptions> = {}) {
27 return function (nsp: any) {
28 return new NodeClusterAdapter(nsp, opts);
29 };
30}
31
32export class NodeClusterAdapter extends ClusterAdapterWithHeartbeat {
33 constructor(nsp: any, opts: ClusterAdapterOptions = {}) {

Callers 10

entrypoint.jsFile · 0.90
server.jsFile · 0.90
worker.jsFile · 0.85
index.tsFile · 0.85
initFunction · 0.85
server.jsFile · 0.85
createApplicationFunction · 0.85
initServerFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected