Payload emitted on the 'story-error' event of the story message emitter.
Fired when the story engine encounters a fatal error during room processing.
Named 'story-error' rather than 'error' to avoid the Node.js behaviour of
throwing an uncaught exception when an 'error' event has no listeners.
Check event.errorType === 'InsufficientBalanceError' to detect balance failures
and prompt the user to add credits.
Payload emitted on the
'story-error'event of the story message emitter.Fired when the story engine encounters a fatal error during room processing. Named
'story-error'rather than'error'to avoid the Node.js behaviour of throwing an uncaught exception when an'error'event has no listeners.Check
event.errorType === 'InsufficientBalanceError'to detect balance failures and prompt the user to add credits.