Sneedchat May Drain your Battery on Android - The websocket will keep the background tab alive.

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.

Kendall Motor Oil

True & Honest Fan
kiwifarms.net
Joined
Jan 29, 2021
Putting this in its own post for exposure and the fact that it likely isn't a bug.

If you've noticed your battery has been draining faster than normal and your data usage has spiked, it may be due to having a KF tab open that has chat. I've noticed increased battery drain and data usage over the past few days on Android. Killing the KiwiFarms tab in the browser will stop the issues. I have tested this with chrome and firefox and monitored network usage to reproduce this.

I guess the websocket is kept active in mobile browsers.
 
@Neigh outta curiosity, did the battery issues start when null implemented the user list?

I was looking at the frames last night and the amount of traffic the user list generates is nuts. It sends join and part events every time someone opens/closes the chat and I'm guessing page navigation is triggering that.
1657313742293.png
In terms of bandwidth, like 60 KB of that was connection setup so the bandwidth issues are probably related to auto loading images. I'd guess battery issues are due to JS constantly running in the background micromanaging the user list and the fact that the phone has no opportunity to let the modem sleep with so much traffic streaming in. I only browse as a guest while on mobile and don't have issues with battery.

If you're using Firefox on Android or Kiwi Browser (a Chromium browser on Android that lets you load extensions) and you have uBlock Origin, you can add this to your filters to block the chat's iframe
Code:
||kiwifarms.net/test-chat
 
@Neigh outta curiosity, did the battery issues start when null implemented the user list?

I was looking at the frames last night and the amount of traffic the user list generates is nuts. It sends join and part events every time someone opens/closes the chat and I'm guessing page navigation is triggering that.
View attachment 3471711
In terms of bandwidth, like 60 KB of that was connection setup so the bandwidth issues are probably related to auto loading images. I'd guess battery issues are due to JS constantly running in the background micromanaging the user list and the fact that the phone has no opportunity to let the modem sleep with so much traffic streaming in. I only browse as a guest while on mobile and don't have issues with battery.

If you're using Firefox on Android or Kiwi Browser (a Chromium browser on Android that lets you load extensions) and you have uBlock Origin, you can add this to your filters to block the chat's iframe
Code:
||kiwifarms.net/test-chat
Yes. Coincidentally I was writing a client in python and noticed the large amount of user status messages when he added that feature.
 
  • Like
Reactions: Flaming Dumpster
Coincidentally I was writing a client in python
Same but mine is in C#. Here's what it looks like after a few hours of effort. The library is complete and supports all the events but the UI is... lacking.
1657368335395.png
Is there a way to straight up turn off chat?
I don't see a way in the UCP so the only option is blocking the iframe per my previous post.
 
  • Winner
Reactions: Kendall Motor Oil
If you're using Firefox on Android or Kiwi Browser (a Chromium browser on Android that lets you load extensions) and you have uBlock Origin, you can add this to your filters to block the chat's iframe
does that even stop the connection or are you just telling people how to break the site
 
  • Thunk-Provoking
Reactions: NegerJäger
does that even stop the connection or are you just telling people how to break the site
Just tested it and it works. No WS connection is opened and the chat just doesn't load
1657535523333.png
I thought for a second it might cause some issues as I could see chat.js loading, but it looks like there are 2 chat.js files, one for SneedChat and one from the old AJAX chat.
 
Please disable this by default, do you really need 10x load on your servers AND user browsers so everybody can immediately see some stupid ass chat?
Shut up, this is the cost you pay for the opportunity to talk to the hottest boomer autists 24/7. Type "sneed" now, Ooperators are standing by
 
Maybe your bandwidth is overextended because you push useless features on users, you fucking retarded dog.
 
  • Thunk-Provoking
Reactions: Dork Of Ages
Back