OptionalobservableBackend: IPluginObservableListen for broadcast events emitted by other plugins with full type safety.
Name of the event to listen for (strongly typed)
Observable context (v9 BREAKING: Observable only, no longer accepts DTrace)
Function to call when event is received (receives Observable and validated input object)
Emit broadcast events to all listening plugins with full type safety.
Name of the event to emit (strongly typed)
Observable context (v9 BREAKING: Observable only, no longer accepts DTrace)
Event input object (will be validated against schema)
Listen for fire-and-forget events from other plugins with full type safety.
Name of the event to listen for (strongly typed)
Observable context (v9 BREAKING: Observable only, no longer accepts DTrace)
Function to call when event is received (receives Observable and validated input object)
Emit fire-and-forget events to other plugins with full type safety.
Name of the event to emit (strongly typed)
Observable context (v9 BREAKING: Observable only, no longer accepts DTrace)
Event input object (will be validated against schema)
Listen for returnable events from other plugins with full type safety.
Name of the event to listen for (strongly typed)
Observable context (v9 BREAKING: Observable only, no longer accepts DTrace)
Function to call when event is received (receives Observable), must return a value
Emit returnable events and wait for response with full type safety.
Name of the event to emit (strongly typed)
Observable context (v9 BREAKING: Observable only, no longer accepts DTrace)
Event input object (will be validated against schema)
Optional timeout in seconds (default: 5)
Get stream ID for receiving streamed data from another plugin.
Trace for logging context
Name of the stream event
Function called when stream is received
OptionaltimeoutSeconds: numberOptional timeout in seconds
Send stream data to another plugin.
Trace for logging context
Name of the stream event
ID of the stream to send to
The readable stream to send
Schema-first plugin events handler with automatic validation and object parameters.
See
API: PluginEvents