bothy-sdk
    Preparing search index...

    Class GatewayEvent

    One server frame that matters to an event source.

    Index

    Constructors

    Properties

    Constructors

    • Creates the event.

      Parameters

      • op: string

        The op.

      • data: Readonly<Record<string, unknown>>

        The d member.

      • Optionalmodel: unknown

        The typed reading of the frame, if any.

      Returns GatewayEvent

    Properties

    data: Readonly<Record<string, unknown>>

    The d member without null members (the envelope of a dispatch).

    model: unknown

    The frame read as its generated type (GatewayReady, GatewayResumed, GatewayCursor, GatewayResyncRequired), a GatewayOpError for error, undefined for dispatch.

    op: string

    dispatch, cursor, ready, resumed, resync_required or error.