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

Method add

src/node/services/messageQueue.ts:139–145  ·  view source on GitHub ↗

* Add a message to the queue. * Preserves muxMetadata from first message, updates other options. * Accumulates file parts. * * @throws Error if trying to add a compaction request when queue already has messages

(
    message: string,
    options?: SendMessageOptions & { fileParts?: FilePart[] },
    internal?: QueuedMessageInternalOptions
  )

Source from the content-addressed store, hash-verified

137 * @throws Error if trying to add a compaction request when queue already has messages
138 */
139 add(
140 message: string,
141 options?: SendMessageOptions & { fileParts?: FilePart[] },
142 internal?: QueuedMessageInternalOptions
143 ): boolean {
144 return this.addInternal(message, options, internal);
145 }
146
147 /**
148 * Add a message to the queue once, keyed by dedupeKey.

Callers 15

ProjectSidebarInnerFunction · 0.80
renderAgeTiersFunction · 0.80
TutorialTooltipFunction · 0.80
handleCheckboxClickFunction · 0.80
handleUnarchiveFunction · 0.80
handleBulkDeleteWorktreeFunction · 0.80
handleDeleteWorktreeFunction · 0.80

Calls 1

addInternalMethod · 0.95

Tested by 14

subscribeKeyFunction · 0.64
touchKeyFunction · 0.64
writeStateFunction · 0.64
readStringFunction · 0.64
readStateFunction · 0.64
iterateFunction · 0.64
addEventListenerMethod · 0.64
addToRenamingWorkspacesFunction · 0.64
addToArchivingWorkspacesFunction · 0.64
listenTcpServerFunction · 0.64