- Async Handling: The most common use case is to use async handlers. These let you simply await the commands. The response is returned in the
finalPayload
object.
Async handlers
- Synchronous Handling: Synchronous require you to subscribe to the event.
Event listeners