Skip to content Skip to sidebar Skip to footer

Monitoring Websockets Latency

We're building a latency-sensitive web application that uses websockets (or a Flash fallback) for sending messages to the server. While there is an excellent tool called Yahoo Boom

Solution 1:

Seems pretty trivial to me.

  1. Send PING to the server. Time is t1.

  2. Read PONG response. Time is t2 now.

  3. ping time = t2 - t1

  4. Repeat every once in a while (and optionally report to the stats server).

Obviously, your server would have to know to send PONG in response to a PING command.

Post a Comment for "Monitoring Websockets Latency"