Hierarchy

  • WebSocketEvents

Properties

Properties

close: (() => void)

Type declaration

    • (): void
    • Called on the WebSocket server or client closing the connection.

      Returns void

receive: ((data) => void)

Type declaration

    • (data): void
    • Called on a message being received.

      Parameters

      • data: string | Uint8Array

        The data being received. Could be a string or buffer depending on the WebSocketEncoding.

      Returns void

Generated using TypeDoc