Class WebSocketTransportClientAbstract

A generic transport client for transports that use WebSockets to communicate with a backend.

Hierarchy

Constructors

Properties

_onPublishMessage: EventDispatcher<WebSocketTransportClient, EventPayload> = ...
_requestId?: string
host: string
messageQueue: any[] = []
processServerMessage: ((arg0) => Promise<any>)

Type declaration

    • (arg0): Promise<any>
    • Parameters

      • arg0: any

      Returns Promise<any>

webSocket?: default
defaultHost: string = "ws://localhost:8090/ws"

Accessors

Methods

  • Sends an object to the server using the current socket connection.

    Parameters

    • message: object

      The object to serialize and send.

    • Optional callback: (() => any)

      A callback to run after sending.

        • (): any
        • Returns any

    Returns void

Generated using TypeDoc