MCPcopy Create free account
hub / github.com/coder/mux / handler

Method handler

src/node/services/terminalService.ts:719–725  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

717 // Without this, a crashy listener would also crash the Electron main process via
718 // process.uncaughtException (see emitOutput's defense-in-depth notes).
719 const handler = (data: string) => {
720 try {
721 callback(data);
722 } catch (err) {
723 log.warn(`[TerminalService] output listener threw for session ${sessionId}:`, err);
724 }
725 };
726 emitter.on("data", handler);
727
728 return () => {

Callers 2

parseCommandFunction · 0.80
routerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected