codemelted.js Module
    Preparing search index...

    Class CProtocolEvent<T>

    An event handled by a currently opened CProtocol. The event is handled via the CProtocolEventHandler.

    The event objects a protocol is working with.

    Type Parameters

    • T

      The event objects a protocol is working with.

    Index
    • Constructor for the event.

      Type Parameters

      • T

        The event objects a protocol is working with.

      Parameters

      • params: { data: any; event_fired: string; protocol: CProtocol<T> }

        The named parameters.

        • data: any

          The data handled by the protocol.

        • event_fired: string

          The event that was handled.

        • protocol: CProtocol<T>

          The protocol associated with the event.

      Returns CProtocolEvent<T>

    • The data received by the event. Utilize the as_xxx() functions to retrieve a specific data type for the given protocol_type().

      Returns T

    • Retrieves the event that was fired with the open protocol.

      Returns string