MCPcopy
hub / github.com/coder/mux / emitChatEvent

Method emitChatEvent

src/node/services/workspaceService.ts:2819–2823  ·  view source on GitHub ↗
(workspaceId: string, message: WorkspaceChatMessage)

Source from the content-addressed store, hash-verified

2817 }
2818
2819 public emitChatEvent(workspaceId: string, message: WorkspaceChatMessage): void {
2820 const trimmed = workspaceId.trim();
2821 assert(trimmed.length > 0, "emitChatEvent requires workspaceId");
2822 this.sessions.get(trimmed)?.emitChatEvent(message);
2823 }
2824
2825 public disposeSession(workspaceId: string): void {
2826 const trimmed = workspaceId.trim();

Callers 7

removeMethod · 0.45
askSideQuestionMethod · 0.45
answerAskUserQuestionMethod · 0.45
truncateHistoryMethod · 0.45
resetContextMethod · 0.45
replaceHistoryMethod · 0.45

Calls 2

getMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected