MessageHandler: (message: T, ws: WebSocket, event: MessageEvent) => void

Handler for messages delivered by the subscription.

Type Parameters

  • T

Type declaration

    • (message: T, ws: WebSocket, event: MessageEvent): void
    • Parameters

      • message: T
      • ws: WebSocket
      • event: MessageEvent

      Returns void