MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / handleOpen

Function handleOpen

lib/src/websockets.ts:22–27  ·  view source on GitHub ↗
(store: Store)

Source from the content-addressed store, hash-verified

20}
21
22function handleOpen(store: Store) {
23 // TODO: Add a way to subscribe to multiple resources in one request
24 for (const subject of store.subscribers.keys()) {
25 store.subscribeWebSocket(subject);
26 }
27}
28
29function handleMessage(ev: MessageEvent, store: Store) {
30 if (ev.data.startsWith('COMMIT ')) {

Callers 1

startWebsocketFunction · 0.85

Calls 1

subscribeWebSocketMethod · 0.80

Tested by

no test coverage detected