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

Function bindClientDisconnect

packages/websockets/adapters/ws-adapter.ts:41–43  ·  view source on GitHub ↗
(client: TClient, callback: Function)

Source from the content-addressed store, hash-verified

39 }
40
41 public bindClientDisconnect(client: TClient, callback: Function) {
42 client.on(DISCONNECT_EVENT, callback);
43 }
44
45 public async close(server: TServer) {
46 const isCallable = server && isFunction(server.close);

Callers

nothing calls this directly

Calls 1

onMethod · 0.65

Tested by

no test coverage detected