Heartbeat mechanism? #5290
Unanswered
jadelacruz
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Hi @jadelacruz, In WebRTC ICE conenction, there is an embedded heartbeat mechanism in UDP packets. The ping/pong messages that we use is generally to keep the connection alive because firewalls or load balancers drop the connection if there is no activity. So if ICE connection is disconnected for any reason, the connection drops and the user is removed from the conferencing or from the call. I mean even if the solution is not the same as you imagine, we will likely provide a solution that makes you achieve your goal. Please let me know what exactly you would like to achieve. Regards |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I would like to ask if there is some kind of heartbeat mechanism in antmedia? The idea is that, we keep tracking of the stream's session connectivity through websocket?
I saw that the SDK has some kind of command called
ping
that constantly sending on the server, can we make an improvement and make it so that this command will also keep track of the stream's connectivity? Like when a certain stream's failed to sendping
command for a certain period of time, we should consider that stream as disconnected therefore we have to disconnect to their respective conference room/ application and then the server will then send an event to related websocket channel that this user has been disconnected because of their heartbeat inactivity?Beta Was this translation helpful? Give feedback.
All reactions