Subscribes a handler function to an event so it runs only once when that event occurs. After the event fires, the handler is automatically removed and is not called again.Documentation Index
Fetch the complete documentation index at: https://developer.watson-orchestrate.ibm.com/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Parameters
The name of the event to subscribe to.
The callback function to run once when the event occurs. Receives
(event, instance) as parameters.Returns
void
Returns a
void operator.Examples
The following examples show different ways to use once:Do you need practical examples?
Learn how to apply the features available for embedded chat into your implementation with guidance and examples.

