Interface ApiWs<RequestCommandsT, ResponseCommandsT, QueryT>

interface ApiWs<RequestCommandsT, ResponseCommandsT, QueryT> {
    output: WsApiRequestors<RequestCommandsT>;
    reconnect: (() => Promise<ApiWs<RequestCommandsT, ResponseCommandsT, QueryT>>);
    ws: WebSocket;
}

Type Parameters

  • RequestCommandsT extends AnyCommands
  • ResponseCommandsT extends AnyCommands
  • QueryT extends AnyQuery

Properties

Properties

reconnect: (() => Promise<ApiWs<RequestCommandsT, ResponseCommandsT, QueryT>>)
ws: WebSocket