papi-dts
    Preparing search index...

    Variable createNetworkEventEmitterAsyncConst

    createNetworkEventEmitterAsync: <EventType extends NetworkEventTypes>(
        eventType: EventType,
        documentation?: SingleNotificationDocumentation,
    ) => Promise<PlatformEventEmitter<NetworkEvents[EventType]>>

    Create a network event emitter that participates in central registration. Every centrally registered event appears in the OpenRPC document; providing documentation fills in its summary, params, and x-experimental flag, otherwise it is surfaced with placeholder docs.

    If the event name is in MultiSourceNetworkEvents, the central registry uses multi-source semantics: multiple processes may register the same name (each process registers once); all corresponding emitters are valid sources.

    Otherwise the registry uses single-source semantics: only one process may register a given name; subsequent registrations from any process are rejected.

    Intra-process duplicate registration is always rejected regardless of the event's domain.

    See MultiSourceNetworkEvents for multi-source vs single-source semantics.

    Type declaration