Leaf
    Preparing search index...

    Function decodeClientMessage

    • Decode a binary client message.

      Parameters

      • msg: Uint8Array

      Returns
          | undefined
          | { entityId: `leaf:${string}`; type: "unsubscribe" }
          | {
              entityId: `leaf:${string}`;
              snapshot: Uint8Array<ArrayBufferLike>;
              type: "subscribe";
          }
          | {
              entityId: `leaf:${string}`;
              type: "sendUpdate";
              update: Uint8Array<ArrayBufferLike>;
          }