Type alias HlsWebSocketEventMap

HlsWebSocketEventMap: {
    close: (() => void);
    ended: (() => void);
    error: ((error: Error) => void);
}

Map of possible events of HlsWebSocket

Type declaration

  • close: (() => void)
      • (): void
      • Emitted when the connection to the server is closed

        Returns void

  • ended: (() => void)
      • (): void
      • Emitted when there are no more fragments, and the media source has ended

        Returns void

  • error: ((error: Error) => void)
      • (error: Error): void
      • Error event

        Parameters

        • error: Error

          The error

        Returns void

Generated using TypeDoc