API reference / @evolu/common / local-first/Protocol / ApplyProtocolMessageAsRelayOptions

Interface: ApplyProtocolMessageAsRelayOptions

Defined in: packages/common/src/local-first/Protocol.ts:1023

Properties

PropertyTypeDescriptionDefined in
broadcast?(ownerId, message) => voidTo broadcast a protocol message to all subscribers.packages/common/src/local-first/Protocol.ts:1031
rangesMaxSize?number & Brand<"Int"> & Brand<"Between3000-100000">-packages/common/src/local-first/Protocol.ts:1034
subscribe?(ownerId) => voidTo subscribe an owner for broadcasting.packages/common/src/local-first/Protocol.ts:1025
totalMaxSize?number & Brand<"Int"> & Brand<"Between1000000-100000000">-packages/common/src/local-first/Protocol.ts:1033
unsubscribe?(ownerId) => voidTo unsubscribe an owner from broadcasting.packages/common/src/local-first/Protocol.ts:1028

Was this page helpful?