Closed Jordanirabor closed 4 years ago
Could someone please write a simple walkthrough?
This is the error I get:
Assembly 'Assets/Plugins/PusherClient.dll' will not be loaded due to errors: Unable to resolve reference 'WebSocket4Net'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Unable to resolve reference 'Newtonsoft.Json'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Unable to resolve reference 'SuperSocket.ClientEngine'. Is the assembly missing or incompatible with the current platform?
When I finally added all of those DLLs as references in an msc.rsp file. I get two new errors:
Unloading broken assembly Assets/Plugins/PusherClient.dll, this assembly can cause crashes in the runtime
TypeLoadException: Invalid type PusherClient.Connection for instance field PusherClient.Pusher:_connection
+1 a walkthrough would be very appreciated. I found no way of running this lib within Unity. tried with building dlls and by using source code.
@damdo another problem is i cant use it in unity3d. as unity3d does not support nuget. i have to manullay find dll and put it in unity3d. when i use the dll file in assets i receive this error:
Assembly 'Assets/PusherClient.dll' will not be loaded due to errors: Unable to resolve reference 'WebSocket4Net'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. Unable to resolve reference 'SuperSocket.ClientEngine'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector.
i tested this on both android and windows target platform. is this realy tested on unity3d?
Hey people, thank you for reporting your issues with the Unity integration. These past weeks we worked on a better integration between Pusher Channels and Unity.
On this note, today I've released a new repository that will be the reference for developers willing to integrate Pusher Channels with Unity: https://github.com/pusher/pusher-websocket-unity 🎉
The pusher-websocket-unity
repository will serve as:
.unitypackage
From now on I'd suggest to keep the conversations on Unity there. Thank you ✨ Dam
great man. very glad to hear that. thanks. ill test it and tell you my results @damdo
well done. it works like a charm.
Closing this issue as Unity is now officially supported by Pusher Channels through https://github.com/pusher/pusher-websocket-unity as mentioned here https://github.com/pusher/pusher-websocket-dotnet/issues/65#issuecomment-520495111
I have some issues adding this package into Unity. My method was to install it using Visual Studio and moving the .dll file to the Assets/Plugins folder of Unity. I'm not sure if this is the right way because it throws several errors.
Please help.