tmijs / tmi.js

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)
https://tmijs.com
MIT License
1.56k stars 211 forks source link

Channel not longer on this cluster #98

Closed ccioloca closed 8 years ago

ccioloca commented 8 years ago

I get this warn when connecting to a channel:

warn: Channel #voyboy isn't or no longer located on this cluster. warn: Read more: https://www.tmijs.org/forums/index.php?/topic/39-channel-specific-chat-server-clusters/

Is there any fallback for this issue?

celluj34 commented 8 years ago

You can try checking beforehand if that person is on the new cluster or the old, or try reconnecting when you get that error. On Mar 21, 2016 4:55 AM, "ccioloca" notifications@github.com wrote:

I get this warn when connecting to a channel:

warn: Channel #voyboy isn't or no longer located on this cluster. warn: Read more: https://www.tmijs.org/forums/index.php?/topic/39-channel-specific-chat-server-clusters/

Is there any fallback for this issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/Schmoopiie/tmi.js/issues/98

ccioloca commented 8 years ago

From what I see there are different servers to connect to, when the channel is on different cluster. The connection to that cluster must be done manually or tmi will do that first hand?

celluj34 commented 8 years ago

You'd have to connect manually. What you can do is keep one connection for the old cluster and one for the new cluster simultaneously. On Mar 21, 2016 9:39 AM, "ccioloca" notifications@github.com wrote:

From what I see there are different servers to connect to, when the channel is on different cluster. The connection to that cluster must be done manually or tmi will do that first hand?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/Schmoopiie/tmi.js/issues/98#issuecomment-199319098

Schmoopiie commented 8 years ago

Correct, you have to connect manually as we do not create multiple connections, we prefer to let the developers create and manage the connection(s) themselves.

In your case, https://api.twitch.tv/api/channels/voyboy/chat_properties says that the channel is located on the "aws" cluster, so you have to be connected on that cluster for this channel. Twitch is still migrating some channels, but at some point, aws will become the default cluster in tmi.js