MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / resubscribeContexts

Method resubscribeContexts

packages/event-service/src/client.ts:403–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

401 * have missed events while the socket was disconnected or out of sync.
402 *
403 * Returns an unsubscribe function. Calling it removes the handler.
404 */
405 onResync(handler: () => void): () => void {
406 this.resyncHandlers.add(handler);
407 return () => {
408 this.resyncHandlers.delete(handler);
409 };
410 }
411
412 on(event: string, handler: (context: string, payload: unknown) => void): () => void {
413 let handlers = this.eventHandlers.get(event);
414 if (!handlers) {

Callers 1

connectOnceMethod · 0.95

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected