API reference / @evolu/common / Evolu/Protocol / createProtocolMessageBuffer
Function: createProtocolMessageBuffer()
function createProtocolMessageBuffer(ownerId, options): ProtocolMessageBuffer;
Defined in: packages/common/src/Evolu/Protocol.ts:556
Parameters
| Parameter | Type |
|---|---|
ownerId | string & Brand<"Id"> & Brand<"OwnerId"> |
options | object & | { messageType: 0; subscriptionFlag?: SubscriptionFlag | undefined; writeKey?: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">; } | { errorCode: ProtocolErrorCode; messageType: 1; } | { messageType: 2; } |