@roomy-chat/sdk
    Preparing search index...

    Class SuperPeer1BinaryWrapper

    Wraps a SuperPeer1 to provide a Sync1BinaryInterface.

    This makes makes it easier to sync across binary network transports such as TCP or WebSockets.

    You should create a new SuperPeer1BinaryWrapper around the same SuperPeer1 for every client connection.

    Implements

    Index

    Methods

    Constructors

    Methods

    • Should be called to unsubscribe all of the subscriptions made through this wrapper when you are done with it.

      Returns void

    • 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

    Constructors