question

Lloyd Hause avatar image
Lloyd Hause asked Da Kong commented

Websocket Connection Failed

1700064142174.png

The websocket connection was successfully established and server notifications were received but timed out after a few minutes. How can we restore it and keep it alive? Any help regarding would be appreciated.

webhooks
1700064142174.png (247.6 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Da Kong avatar image
Da Kong answered

@Lloyd Hause Could you send over the code to da.kong@ringcentral.com? I tried with my own example code and it worked OK.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Lloyd Hause avatar image
Lloyd Hause answered Da Kong commented

@Da Kong could you please share your code where you implement ping pong mechanism to keep it active. Thanks

3 comments
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Da Kong avatar image Da Kong commented ·

There's a recover_connection method but nothing built-in to keep it alive. Let me add that and get back to you when it's added.

0 Likes 0 ·
Lloyd Hause avatar image Lloyd Hause Da Kong commented ·

@Da Kong when you will recover_connection method?

0 Likes 0 ·
Da Kong avatar image Da Kong Lloyd Hause commented ·

for whatever reason that might disconnect websockets, eg. Internet down. It should be used as a "try to recover" emergency plan whenever the connection is lost. But keep-alive is a valid case as well, for normal use.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys