What this client needs of a WebSocket, so a runtime without one can pass its own.

Hierarchy

  • WebSocketLike

Properties

onclose: null | ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: any

      Returns void

onerror: null | ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: any

      Returns void

onmessage: null | ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: {
            data: any;
        }
        • data: any

      Returns void

onopen: null | ((event) => void)

Type declaration

    • (event): void
    • Parameters

      • event: any

      Returns void

readyState: number

Methods

  • Parameters

    • data: string

    Returns void