Hierarchy

  • WebSocketProvider

Properties

key: string

Unique identifier for the WebSocket subscriber.

onclose?: ((event) => void)

Type declaration

    • (event): void
    • Event listener called when the WebSocket connection is closed.

      Parameters

      • event: Event

      Returns void

onerror?: ((error) => void)

Type declaration

    • (error): void
    • Event listener called when an error occurs on the WebSocket connection.

      Parameters

      • error: Event

      Returns void

onmessage?: ((data) => void)

Type declaration

    • (data): void
    • Event listener called when a message is received from the server.

      Parameters

      • data: string

      Returns void

onmessageJSON?: ((data) => void)

Type declaration

    • (data): void
    • Event listener called when a JSON message is received from the server.

      Parameters

      • data: JSON

      Returns void

onopen?: (() => void)

Type declaration

    • (): void
    • Event listener called when the WebSocket connection is opened.

      Returns void

topic?: string

Optional identifier for a specific WebSocket topic.

websocket?: default

Instance of the ReconnectingWebSocket associated with this subscriber.