from server to client (ms): 113 last packet processed (ms ago): 113
from server to client (ms): 128 last packet processed (ms ago): 110
from server to client (ms): 144 last packet processed (ms ago): 108
from server to client (ms): 157 last packet processed (ms ago): 107
Printing it with this: (where result.net.now is the Date.now() at server packet)
console.log("from server to client (ms): " + (Date.now() - result.net.now) +
" last packet processed (ms ago): " + (Date.now() - this.prevTime));
this.prevTime = Date.now();
tcp and outbound and ip.DstAddr >= 127.0.0.1 and ip.DstAddr <= 127.255.255.255
..and then starts to happen some interesting issues, it logs this at client side (same for server tbh):
from server to client (ms): 2068 last packet processed (ms ago): 119
from server to client (ms): 2053 last packet processed (ms ago): 80
from server to client (ms): 2081 last packet processed (ms ago): 120
from server to client (ms): 2109 last packet processed (ms ago): 122
It seems that e.g. 2068 seems to be OK but ms ago is not? My character can move every 100ms (btw).
If I watch how it behaves it seems for me that its bursting packets at once at both sides of the connection.
To my eyes it looks like that client/server sides first waits 2000ms and then every 100ms it shows what has happened because then it actually received the packet.
I dont know if this is because of TCP or because the tool is not working? Or my codes is not working, bad configs for node.js? Does anyone have any opinions on this, am I missing something relevant or doing something completely wrong with the tool.
I though that following would have happened: If 4 packets are sent, every 2000ms one packet is received?