Hierarchy

  • WebsocketClient
    • SentinelWsClient

Constructors

  • Parameters

    • baseUrl: string
    • Optional onError: ((err) => void)
        • (err): void
        • Parameters

          • err: any

          Returns void

    Returns SentinelWsClient

Methods

  • Resolves as soon as websocket is connected. execute() queues requests automatically, so this should be required for testing purposes only.

    Returns Promise<void>

  • Returns void

  • Parameters

    • request: JsonRpcRequest

    Returns Promise<JsonRpcSuccessResponse>

  • Parameters

    • request: JsonRpcRequest

    Returns Stream<SubscriptionEvent>

  • Parameters

    • id: JsonRpcId

    Returns Promise<JsonRpcResponse>

  • Parameters

    • query: string

    Returns Stream<SubscriptionEvent>

Generated using TypeDoc