Hi Deriv Community,
Ever had your WebSocket connection drop when your app sits idle for too long?
There’s a simple way to keep the connection live without constantly sending data.
Our latest guide walks you through an example on how to keep your WebSocket session active using a timed ping. Here’s a quick look at what it covers:
● Create an API object
● Start a proposal subscription
● Send a ping to keep the connection live
● Handle WebSocket responses
● End the WebSocket subscription
Check out the full article here
How are you managing idle connections in your setup? Drop your ideas or feedback