papi-dts
    Preparing search index...
    • Subscribe to a typed network event. The payload type is inferred from the event's declaration in NetworkEvents.

      Type Parameters

      Parameters

      Returns PlatformEvent<NetworkEvents[EventType]>

      Event for the event type that runs the callback provided when the event is emitted

    • Subscribe to a network event with an explicit payload type.

      Type Parameters

      • T

      Parameters

      • eventType: string

        Unique network event type for coordinating between connections

      Returns PlatformEvent<T>

      Event for the event type that runs the callback provided when the event is emitted

      8 June 2026. Use the typed signature: declare the event in NetworkEvents and call getNetworkEvent('your.event.name') without an explicit type parameter.