My chat bot is verified and connects to approximately 2500 channels on 1 websocket connection (I am using tmi.js, so one “client”) but I still get randomly disconnected without knowing why.
Is there a limit for reading messages on 1 connection ? I did not see any in the documentation.
Also is it recommended to use multiple websocket connections (so multiple tmi.js “clients”) when joining thousand of channels ?
The “buffer” thing isn’t well documented, since when you get to the sort of scale where it becomes an issue, most people spin/spread their channels across instances for other/performance reasons anyway.
You should establish one connection per about 20-40~ (afaik) channels, more than 100 channels is pretty much a guaranteed connection drop from my experience.