Creates an event emitter that works properly over the network. Other connections receive this event when it is emitted.

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

  • Type Parameters

    • T

    Parameters

    • eventType: string

      Unique network event type for coordinating between connections

    Returns PlatformEventEmitter<T>

    Event emitter whose event works between connections