codemelted.js Module
    Preparing search index...

    Class CWorkerEvent

    Identifies event handled by the PROTOCOL_TYPE.Worker protocol.

    Index
    • Constructor for the protocol event.

      Parameters

      • params: { event: ErrorEvent | MessageEvent<any>; is_error: boolean }

        The named parameters

        • event: ErrorEvent | MessageEvent<any>

          The event handled by the protocol.

        • is_error: boolean

          true if it was an error event, false otherwise.

      Returns CWorkerEvent

    • Treats the wrapped event as an error event.

      Returns ErrorEvent | null

    • Treats the wrapped event as a message event.

      Returns MessageEvent<any> | null

    • The event captured by the protocol.

      Returns ErrorEvent | MessageEvent<any>

    • Indicates if the event captured was an error.

      Returns boolean