API reference / @evolu/common / local-first/Protocol / ApplyProtocolMessageAsRelayOptions
Interface: ApplyProtocolMessageAsRelayOptions
Defined in: packages/common/src/local-first/Protocol.ts:1026
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
broadcast? | (ownerId, message) => void | To 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) => void | To 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) => void | To unsubscribe an owner from broadcasting. | packages/common/src/local-first/Protocol.ts:1031 |