rebolek / gritter

Gitter client written in Red
32 stars 5 forks source link

Reduce update times #9

Open geekyi opened 7 years ago

geekyi commented 7 years ago

Here is the network stats when my gitter tab is not focused, on firefox: image

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?

rebolek commented 7 years ago

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.