views:

27

answers:

2

I'm building a simple html5 app to monitor the total network traffic that's incoming and outgoing. Is it possible to know your bandwidth usage using js?

A: 

You could use some of the code in Firebug to do this. Firebug has a "Net" tab that monitors downloads and uploads.

Delan Azabani
This isn’t going to work unless the code is running inside a Firefox extension. Even then, it’ll be necessary to write some C++ code since there’s no API in Firefox for determining overall system resource usage.
Daniel Cassidy
+2  A: 

Not for the whole system -- at least not without some sort of client-side addon installed.

CD Sanchez