-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to channel? #35
Comments
Can you share your code? |
I first followed the tutorial by HonestDanGames you linked, after I used your class "Chat Client for Unity"
Edits: sorry, I'm not familiar with this code insert |
That code looks like it’d work in the normal (not unity) library. You might also try listening to OnConnected, OnJoinedChannel, and OnSendReceiveData events. The latter will fire every time a piece of data is received from Twitch, and is great for debugging problems. Other than that, you’ll probably have to wait for Lucky to respond |
Could you provide your Unity version? As of Unity 2018 the TwitchClient is no longer functional. See: https://fogbugz.unity3d.com/default.asp?1045497_7ifkb9kvjpn7113n This might also be the case for some later versions of Unity 2017. This bug report is specifically for WebSocket4Net, however, TwitchLib's client uses that in the background, so it won't work. I created a Unity package which you an import into any empty unity project, press play, and it should show "opened" in the log. If it doesn't that means your Unity version won't work with TwitchLib's Client: https://cdn.discordapp.com/attachments/415976614954795018/458754439793213453/WebSocket4Net_Unity_TestPackage.unitypackage |
Hello, I do have the latest Unity installed, yes. Your package link is dead for me. |
I just noticed it didn't work, trying to fix it D: |
Can you try to just copy paste the link instead? It works here. Github doesn't like links for whatever reason? |
What exact version would you recommend? |
Would you recommend other API that works without uninstalling Unity? |
From the official releases, I can confirm working:
From the beta releases, I can confirm working:
From the official releases, I can confirm broken:
From the official releases, I can confirm broken:
So personally I would recommend the latest version of Unity 2017 for now, which has LTS (long term support). I can also recommend installing the Unity Hub, to easily manage your Unity versions, so it makes it easier to have multiple versions installed, and switching between them is much easier. As for any other API. the TwitchLib.API module should work just fine. It's just the TwitchLib.Client which is broken. |
Thanks, I do have Unity Hub, see if 2017.4.6f1 (LTS) does it. |
Installed, works like charm. Thank you ! |
See issue #36 for more information |
Will go ahead and close this. Feel free to reopen as necessary. |
"BadStateExeption: Must be connected to at least one channel." at event, even with provided client class, correct initialization, non capitalized channel names, double checked keys.
The text was updated successfully, but these errors were encountered: