Automerge Repo - v2.3.0-alpha.0
    Preparing search index...

    Module @automerge/automerge-repo-network-websocket - v2.2.0

    A NetworkAdapter which connects to a remote host via WebSockets

    The websocket protocol requires a server to be listening and a client to connect to the server. To that end the WebSocketServerAdapter does not make outbound connections and instead listens on the provided socket for new connections whilst the WebSocketClientAdapter makes an outbound connection to the provided socket.

    Note that the "browser" and "node" naming is a bit misleading, both implementations work in both the browser and on node via isomorphic-ws.

    Classes

    WebSocketClientAdapter
    WebSocketServerAdapter

    Type Aliases

    ErrorMessage
    FromClientMessage
    FromServerMessage
    JoinMessage
    PeerMessage
    ProtocolVersion

    Variables

    ProtocolV1