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

Interface: ApplyProtocolMessageAsRelayOptions

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

Properties

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

Was this page helpful?