inworld-web-sdk icon indicating copy to clipboard operation
inworld-web-sdk copied to clipboard

feat: Connection management

Open tshashkova opened this issue 8 months ago • 0 comments

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

tshashkova avatar Jun 15 '24 05:06 tshashkova