Skip to content
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

Client & PubSub is not compatible with certain versions of the Unity Editor #36

Open
RRickkert opened this issue Jun 24, 2018 · 3 comments

Comments

@RRickkert
Copy link
Member

RRickkert commented Jun 24, 2018

Issue resolved

As of Unity 2018.2.5f1 (and possibly a few versions earlier), this issue has been fixed.

The issue

As of Unity 2018, most versions so far are no longer compatible with the TwitchLib Client and PubSub for Unity.
This has to do with the WebSocket4Net dll that TwitchLib's Client and PubSub uses.

Please note: This only affects the TwitchLib Client and PubSub. Not the TwitchLib Api,

Please vote for a fix!

A Unity bug report has been created in the hope that Unity will be fixing this issue soon.
Please vote on the bug report to put a bit more pressure on the Unity developers to get this fixed!
You can find the bug report here: https://issuetracker.unity3d.com/issues/opened-event-of-a-websocket4net-dot-websocket-does-not-get-called-when-opening-a-web-socket

Please note that even though it says it's fixed in 2018.2, according to our tests, it's not.

Supported Unity versions

Official releases:

  • Unity 2018.2.5f1
  • Unity 2018.1.3f1
  • Unity 2018.1.2f1
  • Unity 2018.1.1f1
  • Unity 2018.1.0f2
  • Unity 2017.4.6f1 (LTS)
  • Unity 2017.4.5f1 (LTS)
  • Unity 2017.3.1f1
  • Unity 2017.2 and earlier versions

Beta releases:

  • Unity 2018.2.0b1

Unsupported Unity versions

Official releases:

  • Unity 2018.1.6f1
  • Unity 2018.1.5f1
  • Unity 2018.1.4f1

Beta releases:

  • Unity 2018.2.0b4
  • Unity 2018.2.0b5
  • Unity 2018.2.0b6
  • Unity 2018.2.0b7
  • Unity 2018.2.0b8
  • Unity 2018.2.0b9

Testing your Unity version's compatibility

To figure out whether version of Unity that you're using should be compatible, you can use the following method:

Instructions

  • Create a new Unity project with the version of Unity that you would like to test.
  • Download the zipped Unity Package: WebSocket4Net Unity TestPackage.zip
  • Unzip the zipped Unity Package.
  • Drag the unzipped Unity Package file into your project's asset folder.
  • Press the play button.

If your version of Unity is compatible. It should show a message "opened" in the Debug Log.
If your version of Unity is not compatible. It should show no message in the Debug Log.

Solutions

The Unity versions listed under the supported Unity versions should work just fine. So you can always switch your Unity project to one of those versions.

Currently there are no solutions available for the listed unsupported Unity versions.

@MrTwister242
Copy link

Looks like this is still an issue in Unity 2018.2.1f1

@swiftyspiffy
Copy link
Member

As I understand it, the move to .net core 2.1 should resolve this issue as we remove the external dependency on websocket4net

@RRickkert
Copy link
Member Author

As of Unity 2018.2.5f1 (and possibly a few versions earlier), this issue has been fixed.
Might be best to keep this issue open for a little while though since people might still use older versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants