API reference / @evolu/common / Evolu/Protocol / createProtocolMessageBuffer
Function: createProtocolMessageBuffer()
function createProtocolMessageBuffer(ownerId, options): ProtocolMessageBuffer;
Defined in: packages/common/src/Evolu/Protocol.ts:592
Parameters
Parameter | Type |
---|---|
ownerId | string & Brand <"Id" > & Brand <"OwnerId" > |
options | object & | { 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" ; } |