papi-dts
    Preparing search index...

    Variable createNetworkEventEmitterConst

    createNetworkEventEmitter: <T>(eventType: string) => PlatformEventEmitter<T>

    Creates an event emitter that works properly over the network.

    Type declaration

      • <T>(eventType: string): PlatformEventEmitter<T>
      • Type Parameters

        • T

        Parameters

        • eventType: string

          Unique network event type for coordinating between connections

        Returns PlatformEventEmitter<T>

        Event emitter whose event works between connections

    8 June 2026. Use createNetworkEventEmitterAsync. Events created via the sync API are not centrally registered and do not appear in the OpenRPC document. The async version restricts central registration of an event name to a single source (unless the event is declared in MultiSourceNetworkEvents, in which case it accepts multiple registrants by design). Note this restricts central registration, not emission: the registry does not block emits today, but it warns when an event is announced without a matching registration or from a process that did not register it. That tolerance is transitional — announcing an unregistered or cross-process single-source event is deprecated and is expected to become an error (with the registry gating emission) in a future release, so treat the warning as something to fix, not as the permanent behavior.

    WARNING: You can only create a network event emitter once per eventType to prevent hijacked event emitters.