gritter
gritter copied to clipboard
Reduce update times
Here is the network stats when my gitter tab is not focused, on firefox:
As you can see, it doesn't poll that often. Eyeballs, followed by 8 mins until a ping. Eyeballs again when I focus back into tab.
eyeballs
looks like presence, and I'm guessing ping
is for idle times.
Also, I'm curious what statsc
is, you send a response with params like:
{"stats":[{"stat":"minibar.activated.org","count":1}],"features":["halley","connectivity-indicator","left-menu"]}
Do they all collect stats, or is there anything useful we can get from them?
There is Faye and streaming API for Gitter to get real-time updates, but I am not sure if they can be implemented using current Red with limited I/O. I'll take a look at the streaming API and try to figure out what can be done right now with it.