Page 1 of 1

Network Message Size

Posted: 04 Jul 2015, 15:25
by jimg
Hi,

Is there a what to track the find the size of each message sent and received? I tried using the Session object's getReadBytes and getWrittenBytes, but the Read Bytes is always 0. I'm trying to use this information to estimate bandwidth and would like to determine the average message size for my extension requests/responses.

Re: Network Message Size

Posted: 04 Jul 2015, 15:33
by Lapo
A simple way to determine the bandwidth is by monitoring the client via the Admin Tool.
Using the Zone Monitor choose the Zone, Room and User you want to monitor, this will show several statistics including sent and received bytes.

See the first screenshot here:
http://docs2x.smartfoxserver.com/Gettin ... oneMonitor

cheers

Re: Network Message Size

Posted: 04 Jul 2015, 15:51
by jimg
Great thanks!