JS SDK RumorSocket Disconnect Errors JS SDK RumorSocket Disconnect Errors

JS SDK RumorSocket Disconnect Errors

Maria Scieranska

Symptom

When using the JavaScript SDK, I received a RumorSocket or sessionDisconnect error.

Applies To

  • JavaScript SDK
  • RumorSocket
  • Disconnection
  • Video API

Resolution

  1. In the case of receiving a sessionDisconnected event, the best way to reconnect is to call Session.connect() once more. If this fails, that would mean that the user is unable to reach Vonage's messaging servers. This would indicate that either the user has no internet connection, or our services are down at the moment.
  2. The next step would be to have the user refresh the page with location.reload(true). This forces the browser to refresh the page while ignoring the cache. If the user is unable to refresh the page, it's most likely that they have no internet connectivity.
  3. If the user is able to refresh the page, but still cannot connect to the Video session, then it's possible that the Video server the session was on is down. If this is the case, then you can try creating a new session, which should then be routed to a different messaging server that is available.
  4. In most cases, the inability to connect with Vonage's servers is temporary. If the user is unable to connect to Vonage's servers for an extended period of time, submit a support request with the date, time, and session ID of the incident, any information that can identify the user having the problem, and any results of the debugging steps listed above.

Cause

Whenever an end-user sees a RumorSocket error, this indicates that the end-user's connection to the Vonage Video API protocol messaging server was disrupted, typically due to the connection being unreliable. The SDK will attempt to reconnect when this happens, but if it fails to do so, the user will receive a sessionDisconnected event.