microsoft / WebRTC-universal-samples

WebRTC samples for the Universal Windows Platform.
177 stars 70 forks source link

Heartbeat timer? #1

Closed JurajPupak closed 7 years ago

JurajPupak commented 7 years ago

Hi, many thanks for example. I would like to ask you, why you send some data from server every 10 seconds? What is the purpose of it?

jamescadd commented 7 years ago

The heartbeat is sent to allow presence to function in Chatterbox. While using the app you'll notice an indicator to the left of the username. This indicator is green when a user is "online," which is determined by the server based on the timing of the last heartbeat signal from the user's device.