RPC like emitting of events.
Dispose all tracked entries
Counter that increments each time dispose has been called
Emits an event to all subscribers and executes their corresponding event handlers.
The event to emit.
The arguments to pass to the event handlers.
A promise that resolves to a boolean indicating whether the event was successfully emitted.
Reset buffer without force sending
Post all buffered messages
Emits an event to all subscribers and executes their corresponding event handlers.
The event to emit.
The arguments to pass to the event handlers.
A promise that resolves to the result of the first subscriber's handler, or undefined if no subscribers are present.
Emits an event to all subscribers and executes their corresponding event handlers.
The event to emit.
The arguments to pass to the event handlers.
A promise that resolves to an array of results from all subscribers, or undefined if no subscribers are present.
Set a new channel and flush buffer
Optionalchannel: Channel<any, Record<string, any>>
Channel that buffers if not connected. The actual channel can be removed and replaced.