object eventsMod
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- eventsMod
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait Abortable extends Object with StObject
- Annotations
- @JSType() @native()
- trait DOMEventTarget extends Object with StObject
- Annotations
- @JSType() @native()
- class EventEmitter extends Object with StObject with eventsMod.global.NodeJS.EventEmitter
The
EventEmitter
class is defined and exposed by theevents
module:The
EventEmitter
class is defined and exposed by theevents
module:js const EventEmitter = require('events');
All
EventEmitter
s emit the event'newListener'
when new listeners are added and'removeListener'
when existing listeners are removed.It supports the following option:
- Annotations
- @JSType() @JSImport("events", "EventEmitter") @native()
- Since
v0.1.26
- trait EventEmitterOptions extends Object with StObject
- Annotations
- @JSType() @native()
- trait NodeEventTarget extends Object with StObject
- Annotations
- @JSType() @native()
- trait StaticEventEmitterOptions extends Object with StObject
- Annotations
- @JSType() @native()
Value Members
- object Abortable
- object EventEmitter
- object EventEmitterOptions
- object StaticEventEmitterOptions
- object global