eventEmitter.INopeSubscriptionOptions - ZeMA-gGmbH/NoPE-JS GitHub Wiki
Interface: INopeSubscriptionOptions
eventEmitter.INopeSubscriptionOptions
Properties
mode
Optional mode: ("sub" | "super" | "direct")[]
If the Emitter is connected to the pubsubsystem (see nope.pubSub) message can be shared in different ways:
- A Change may be emitted by a parent emitter (e.g.
topic/of/emitter; event emitted ontopic)->use the modesuper - A Change may be emitted by an emitter on the same topic (e.g.
topic/of/emitter; event emitted ontopic/of/emitter)->use the modedirect - A Change may be emitted by a child emitter (e.g.
topic/of/emitter; event emitted ontopic/of/emitter/subtopic)->use the modesub
Defaultly on all type of changes the wait method will be react.
skipCurrent
Optional skipCurrent: boolean
Skips the current value during an subscription. This is relevant for
nope.types.INopeObservable. Subscriptions on INopeEventEmitter
will only get informed on an updates. Events are not persitent.
type
Optional type: "immediate" | "sync"
The Style, how the callback should be called.
use "immediate" to prevent cycles.
Normaly this options is selected by the system.