Leaf
    Preparing search index...

    Interface Sync1BinaryInterface

    Binary interface that can wrapped by a Sync1BinaryWrapper to produce a Sync1Interface that can be given to sync1!Syncer1.

    interface Sync1BinaryInterface {
        send(clientMessage: Uint8Array): Promise<void>;
        setReceiver(receiver: (serverResponse: Uint8Array) => void): void;
    }

    Implemented by

    Index

    Methods

    • Send a message to the server.

      Parameters

      • clientMessage: Uint8Array

      Returns Promise<void>

    • Register a callback that will be triggered when a message comes in from the server.

      Parameters

      • receiver: (serverResponse: Uint8Array) => void

      Returns void