Skip to content

JSEventEmitter class

Event emitter that can be backed by either a Node.js EventEmitter object or a standalone (runtime-agnostic) listener tracker.

C#
public class JSEventEmitter : IDisposable

Public Members

namedescription
JSEventEmitter()Creates a new instance of a standalone (runtime-agnostic) event emitter.
JSEventEmitter(…)Creates a new instance of an event emitter backed by a Node.js EventEmitter object.
AddListener(…)
Dispose()
Emit(…)(3 methods)
Once(…)(2 methods)
RemoveListener(…)

Protected Members

namedescription
virtual Dispose(…)

See Also

Released under the MIT license