Hierarchy

  • NullEventSource

Implements

Constructors

Properties

closed: boolean
handlers: Record<string, ((event?) => void)>

Type declaration

    • (event?): void
    • Parameters

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

      Returns void

onclose: undefined | (() => void)

Type declaration

    • (): void
    • Returns void

onerror: undefined | (() => void)

Type declaration

    • (): void
    • Returns void

onopen: undefined | (() => void)

Type declaration

    • (): void
    • Returns void

onretrying: undefined | ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: {
            delayMillis: number;
        }
        • delayMillis: number

      Returns void

url: string

Methods

  • Parameters

    • type: string
    • listener: ((event?) => void)
        • (event?): void
        • Parameters

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

          Returns void

    Returns void

  • Returns void

  • Parameters

    • error: {
          message: string;
          status: number;
      }
      • message: string
      • status: number

    Returns void

Generated using TypeDoc