MCPcopy
hub / github.com/claude-code-best/claude-code / drop

Method drop

src/bridge/flushGate.ts:56–61  ·  view source on GitHub ↗

* Discard all queued items (permanent transport close). * Returns the number of items dropped.

()

Source from the content-addressed store, hash-verified

54 * Returns the number of items dropped.
55 */
56 drop(): number {
57 this._active = false
58 const count = this._pending.length
59 this._pending.length = 0
60 return count
61 }
62
63 /**
64 * Clear the active flag without dropping queued items.

Callers 5

initBridgeCoreFunction · 0.95
rebuildTransportFunction · 0.80
teardownFunction · 0.80
doReconnectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected