Project

General

Profile

measuring network latency

Added by mat Sch over 11 years ago

Is there any built in way to measure or detect network latency using Wt? My application is deployed in a mobile environment where there's often a marginal connection. The data being presented is very realtime so when things start to get backed up the user experience begins to degrade. It would be nice if I could display a warning icon when information was delayed and a communication error when a timeout was reached. I was thinking of implanting a ping/ack message to provide this feedback. Does something like this already exist for Wt? If not I think it would make a great feature.

Thanks,

-mat


Replies (1)

RE: measuring network latency - Added by Wim Dumon over 11 years ago

Just an idea: make a JSignal and then start a timer server-side, trigger the JSignal with doJavaScript() and stop the server-side timer in the event handler?

There's nothing built-in.

BR,

Wim.

    (1-1/1)