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.
Send PING
to the server. Time is t1
.
Read PONG
response. Time is t2
now.
ping time = t2 - t1
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"