# Servers close sockets consistent with keep-alive spec, regardless of client sending KEEP\_ALIVE\_RESPs

**URL:** <https://devforum.zoom.us/t/servers-close-sockets-consistent-with-keep-alive-spec-regardless-of-client-sending-keep-alive-resps/134547>\
**Category:** Realtime Media Streams\
**Created:** [June 26, 2025, 6:56pm UTC](https://devforum.zoom.us/t/servers-close-sockets-consistent-with-keep-alive-spec-regardless-of-client-sending-keep-alive-resps/134547 "2025-06-26T18:56:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davej](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/davej/32/51940_2.png) [@davej](https://devforum.zoom.us/u/davej)\
**Post date:** [June 26, 2025, 6:56pm UTC](https://devforum.zoom.us/t/servers-close-sockets-consistent-with-keep-alive-spec-regardless-of-client-sending-keep-alive-resps/134547/1 "2025-06-26T18:56:42Z")

</div>

Using my development keys, I’ve been able to successfully stream media but only for ~60 seconds. (I’ve previously reported [here](https://devforum.zoom.us/t/problems-with-production-client-id-secret-for-general-app/134341) that any media connections would _not_ stream data using development keys in the handshake request signature, but this appears to be resolved.) This seems consistent with the behavior for not responding to KEEP\_ALIVE\_REQ messages as described by the RTMS docs.

I immediately respond to KEEP\_ALIVE\_REQ messages with KEEP\_ALIVE\_RESP messages from my client’s handshake and media server connections. I ensure that the timestamp is in millis from epoch and that the timestamp is _after_ the server clock timestamp sent from the KEEP\_ALIVE\_REQ. e.g.:

```json
{"msg_type":13,"timestamp":1750963565521}

```

To be completely sure, I am also responding to WebSocket pings with pongs.

Key context: I am _not_ using any SDK; my organization is building an RTMS client in Ruby.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [June 30, 2025, 5:55am UTC](https://devforum.zoom.us/t/servers-close-sockets-consistent-with-keep-alive-spec-regardless-of-client-sending-keep-alive-resps/134547/2 "2025-06-30T05:55:04Z")

</div>

> [@davej](#):
>
> `750963565521`

@davej ,

The timestamp which you should sent back should be the exact timestamp in msg.timestamp

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [July 21, 2025, 4:17pm UTC](https://devforum.zoom.us/t/servers-close-sockets-consistent-with-keep-alive-spec-regardless-of-client-sending-keep-alive-resps/134547/3 "2025-07-21T16:17:51Z")

</div>

Closed on July 21, 2025, 4:17pm UTC


