MCPcopy Create free account
hub / github.com/agent-tower/core / on

Method on

packages/server/src/socket/__tests__/socket-gateway.test.ts:36–39  ·  view source on GitHub ↗
(event: string, handler: (...args: any[]) => void)

Source from the content-addressed store, hash-verified

34 this.id = id;
35 this.namespace.addSocket(this);
36 }
37
38 on(event: string, handler: (...args: any[]) => void) {
39 this.handlers.set(event, handler);
40 return this;
41 }
42

Callers 3

initializeSocketFunction · 0.45
registerMethod · 0.45

Calls 1

setMethod · 0.80

Tested by

no test coverage detected