Coder Social home page Coder Social logo

Comments (9)

virtouso avatar virtouso commented on July 20, 2024 3

well done. it works like a charm.

from pusher-websocket-dotnet.

reneaye avatar reneaye commented on July 20, 2024 1

+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.

from pusher-websocket-dotnet.

Jordanirabor avatar Jordanirabor commented on July 20, 2024

Could someone please write a simple walkthrough?

from pusher-websocket-dotnet.

Jordanirabor avatar Jordanirabor commented on July 20, 2024

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?

from pusher-websocket-dotnet.

Jordanirabor avatar Jordanirabor commented on July 20, 2024

When I finally added all of those DLLs as references in an msc.rsp file. I get two new errors:

  1. Unloading broken assembly Assets/Plugins/PusherClient.dll, this assembly can cause crashes in the runtime

  2. TypeLoadException: Invalid type PusherClient.Connection for instance field PusherClient.Pusher:_connection

from pusher-websocket-dotnet.

virtouso avatar virtouso commented on July 20, 2024

@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?

from pusher-websocket-dotnet.

damdo avatar damdo commented on July 20, 2024

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:

  • a Unity Base project which demonstrates how to integrate Pusher Channels and Unity
  • a build environment for the official .unitypackage
  • a collection of example projects

From now on I'd suggest to keep the conversations on Unity there.
Thank you ✨
Dam

from pusher-websocket-dotnet.

virtouso avatar virtouso commented on July 20, 2024

great man. very glad to hear that. thanks. ill test it and tell you my results @damdo

from pusher-websocket-dotnet.

damdo avatar damdo commented on July 20, 2024

Closing this issue as Unity is now officially supported by Pusher Channels through https://github.com/pusher/pusher-websocket-unity as mentioned here #65 (comment)

from pusher-websocket-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.