improve chat latency
Chat latency needs to be improved upon, because it's constantly trying to send and receive 0 Bytes of data which in turn causes the chat to need to constantly "reconnect". I've monitored over the period of 20 minutes to an hour where the chat is constantly flooded with "Welcome to chat", and the network monitor shows the Twitch chat API constantly sending 0 Bytes taking up to 1.0 minutes to 1.6 minutes, where else everything takes ⅓ of that to load at at rate of around 3 ms - 400ms.
wss://irc-ws.chat.twitch.tv/ Websocket takes up 1 minute to 1.6 minutes to receive any data when it's not receiving anything at all. Second to this culprit is wss://pubsub-edge.twitch.tv/v1 which also sends and receives 0 bytes of data and taking up to 1 minute to 1.6 minutes to respond. They both send error response nonce after doing PING PONG response while listening to an open socket. The connection time takes 1.8 seconds, but it responds in 1 minute to 1.6 minutes, this is too long of a response time to check if the connection is still alive.