# Keep Connection Live

**URL:** https://community.deriv.com/t/keep-connection-live/88171
**Category:** Developers
**Tags:** api, developers, derivapi
**Created:** [May 22, 2025, 7:09am UTC](https://community.deriv.com/t/keep-connection-live/88171 "2025-05-22T07:09:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Faazil\_deriv](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@Faazil\_deriv](https://community.deriv.com/u/Faazil_deriv)
#### Post date: [May 22, 2025, 7:09am UTC](https://community.deriv.com/t/keep-connection-live/88171/1 "2025-05-22T07:09:08Z")

</div>

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](https://developers.deriv.com/docs/keep-connection-live)

How are you managing idle connections in your setup? Drop your ideas or feedback ⬇
