MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / on

Method on

daemon/src/service/router.ts:26–29  ·  view source on GitHub ↗
(event: string, fn: (ctx: RouterContext, data: any) => void)

Source from the content-addressed store, hash-verified

24 }
25
26 on(event: string, fn: (ctx: RouterContext, data: any) => void) {
27 // logger.info(` Register event: ${event} `);
28 return super.on(event, fn);
29 }
30
31 use(fn: (event: string, ctx: RouterContext, data: any, next: Function) => void) {
32 this.middlewares.push(fn);

Callers 15

executeFunction · 0.80
useTerminalFunction · 0.80
testConnectFunction · 0.80
onFunction · 0.80
setupHttpFunction · 0.80
app.tsFile · 0.80
mainFunction · 0.80
requestMethod · 0.80
setUpSocketIOMethod · 0.80
connectMethod · 0.80
startThreadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected