MCPcopy Create free account
hub / github.com/tiann/hapi / enqueueUserMessage

Method enqueueUserMessage

cli/src/api/apiSession.ts:350–356  ·  view source on GitHub ↗
(message: UserMessage, localId?: string)

Source from the content-addressed store, hash-verified

348 }
349
350 private enqueueUserMessage(message: UserMessage, localId?: string): void {
351 if (this.pendingMessageCallback) {
352 this.pendingMessageCallback(message, localId)
353 } else {
354 this.pendingMessages.push({ message, localId })
355 }
356 }
357
358 private handleIncomingMessage(message: { id?: string; seq?: number; localId?: string | null; content: unknown }): void {
359 if (!this.incomingFilter.accept({ id: message.id, seq: message.seq })) {

Callers 1

handleIncomingMessageMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected