API reference / @evolu/common / Evolu/Protocol / createProtocolMessageBuffer

Function: createProtocolMessageBuffer()

function createProtocolMessageBuffer(ownerId, options): ProtocolMessageBuffer;

Defined in: packages/common/src/Evolu/Protocol.ts:556

Parameters

ParameterType
ownerIdstring & Brand<"Id"> & Brand<"OwnerId">
optionsobject & | { messageType: 0; subscriptionFlag?: SubscriptionFlag | undefined; writeKey?: Uint8Array<ArrayBufferLike> & Brand<"Entropy"> & Brand<"Length16"> & Brand<"OwnerWriteKey">; } | { errorCode: ProtocolErrorCode; messageType: 1; } | { messageType: 2; }

Returns

ProtocolMessageBuffer

Was this page helpful?