inworld-web-sdk
inworld-web-sdk copied to clipboard
feat: Connection management
Description
How to simulate the errors?
Send a trigger inworld.debug.error
with one of the following parameters:
- [{"name":"errorType","value":"SESSION_TOKEN_EXPIRED"}]
- [{"name":"errorType","value":"SESSION_TOKEN_EXPIRED"},{"name":"reconnectType","value":"TIMEOUT"}, {"name":"reconnectTime","value":"***"}]
- [{"name":"errorType","value":"SESSION_TOKEN_INVALID"}]
- [{"name":"errorType","value":"SESSION_TOKEN_INVALID"},{"name":"reconnectType","value":"TIMEOUT"}, {"name":"reconnectTime","value":"***"}]
- [{"name":"errorType","value":"SESSION_INVALID"},{"name":"reconnectType","value":"IMMEDIATE"}]
- [{"name":"errorType","value":"SESSION_INVALID"},{"name":"reconnectType","value":"TIMEOUT"}, {"name":"reconnectTime","value":"***"}]
For reconnectTime timestamp should be used
Related Issue (for external contributions)
Related Ticket (for Inworld.ai developers)
Screenshots (if appropriate)
Checklist before requesting a review
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have made corresponding changes to the documentation