fent
fent

Reputation: 18205

How do I know how long my socket.io connection lags by?

I'm making something that is timing specific and need to know exactly how many ms something being sent over socket.io lags by. And if it lags by say 10ms then I would need to delay my timing logic by 10ms so that the client appears to have timed the action correctly.

Upvotes: 1

Views: 632

Answers (1)

btleffler
btleffler

Reputation: 992

The developer behind Socket.io just came out with a package that should help.

https://github.com/guille/latency-io

Upvotes: 3

Related Questions