Add indicator on UI showing that proxy traffic is flowing
Right now there isn't much indication on the UProxy UI to show that proxying is taking place. In addition to showing to the client who they are proxying through (https://github.com/uProxy/uProxy/issues/160) and showing to the server who is proxying through them (https://github.com/uProxy/uProxy/issues/151) it would also be great to show both the client and server sides when (and possibly how much) web traffic is actually flowing between the two peers.
For example on the client's side we could say something like "1.23 MB proxied through Bob", and on the server side we could show "1.23 MB proxied for Alice" (and list multiple clients if they exist), and these numbers would continuously increment as proxying continues. Alternatively we could show an approximate kbps used by the proxy connection, or some LED-like indicator that just blinks/spins/etc when traffic is flowing and is otherwise dark/still.
Advantages of doing this are:
- Reinforces to the client that proxying really is working
- Shows the server how much data each client is consuming and when they are active.
- Depending on how this is displayed it could help us with debugging. Right now we get reports like "I clicked start but when I went to a website it hung" - adding some network traffic indicators could help us determine if the problem is on the client or server side of the connection.
To help us debug, the most detailed display might be:
- On the client side, "1.2 MB sent to Bob, 3.4 MB received from Bob"
- On the server side "1.2 MB received from Alice, 3.4 MB sent to Alice"
Then if something isn't working we could better determine at which point it broke. For example if Alice is able to connect to Bob, but Bob is unable to proxy traffic for Alice, we might see:
- On Alice's screen: "1 MB sent to Bob, 0 MB received from Bob"
- On Bob's screen: "1 MB received from Alice, 0 MB sent to Alice" Indicating that Bob received data from Alice but didn't send anything back.
I love the idea of a virtual "link light". And with some stats, it could help those offering their connection some help tracking down a heavy user. I think having socks-to-rtc and rtc-to-net emit the relevant messages would be pretty easy; something like: { instanceid: xxxxx, bytes: xxx }
The UX could then aggregate the data whatever way it chooses.
Done with: https://github.com/uProxy/uproxy/pull/400 and https://github.com/uProxy/uproxy-networking/pull/130