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

Function: createProtocolMessageBuffer()

function createProtocolMessageBuffer(ownerId, options): ProtocolMessageBuffer;

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

Parameters

ParameterType
ownerIdstring & Brand<"Id"> & Brand<"OwnerId">
optionsobject & | { type: "initiator"; writeKey?: | Uint8Array<ArrayBufferLike> & Brand<`Length${number & Brand<"Int"> & Brand<"NonNegative">}`> & Brand<"WriteKey"> | readonly [Uint8Array<ArrayBufferLike> & Brand<`Length${number & Brand<"Int"> & Brand<"NonNegative">}`> & Brand<"WriteKey">, Uint8Array<ArrayBufferLike> & Brand<`Length${number & Brand<"Int"> & Brand<"NonNegative">}`> & Brand<"WriteKey">]; } | { errorCode: ProtocolErrorCode; type: "non-initiator"; }

Returns

ProtocolMessageBuffer

Was this page helpful?