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

Method emitRouter

daemon/src/service/router.ts:16–24  ·  view source on GitHub ↗
(event: string, ctx: RouterContext, data: any)

Source from the content-addressed store, hash-verified

14 }
15
16 emitRouter(event: string, ctx: RouterContext, data: any) {
17 try {
18 // service logic routing trigger point
19 super.emit(event, ctx, data);
20 } catch (error: any) {
21 responseError(ctx, error);
22 }
23 return this;
24 }
25
26 on(event: string, fn: (ctx: RouterContext, data: any) => void) {
27 // logger.info(` Register event: ${event} `);

Callers 1

navigationFunction · 0.80

Calls 2

responseErrorFunction · 0.90
emitMethod · 0.80

Tested by

no test coverage detected