MCPcopy Create free account
hub / github.com/EvoMap/evolver / toInboundStoreMessage

Function toInboundStoreMessage

src/proxy/sync/inbound.js:19–29  ·  view source on GitHub ↗
(m, channel)

Source from the content-addressed store, hash-verified

17const DEFAULT_POLL_INTERVAL_IDLE = 60_000;
18
19function toInboundStoreMessage(m, channel) {
20 return {
21 id: m.id,
22 type: m.type,
23 payload: m.payload,
24 channel,
25 priority: m.priority || 'normal',
26 refId: m.ref_id,
27 expiresAt: m.expires_at,
28 };
29}
30
31class InboundSync {
32 constructor({ store, hubUrl, getHeaders, logger }) {

Callers 1

pullMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected