MCPcopy
hub / github.com/nestjs/nest / bindClientConnect

Function bindClientConnect

packages/websockets/adapters/ws-adapter.ts:37–39  ·  view source on GitHub ↗
(server: TServer, callback: Function)

Source from the content-addressed store, hash-verified

35 }
36
37 public bindClientConnect(server: TServer, callback: Function) {
38 server.on(CONNECTION_EVENT, callback);
39 }
40
41 public bindClientDisconnect(client: TClient, callback: Function) {
42 client.on(DISCONNECT_EVENT, callback);

Callers

nothing calls this directly

Calls 1

onMethod · 0.65

Tested by

no test coverage detected