itisnajim / SocketIOUnity

A Wrapper for socket.io-client-csharp to work with Unity.
MIT License
393 stars 67 forks source link

Hololens 2 Socket IO connection not working #6

Closed ThimoDEV closed 2 years ago

ThimoDEV commented 2 years ago

Currently I'm working on an application for the Hololens 2.

I created a small NodeJS server which watches a folder for new added files. This server then sends with Socket IO this data to the Unity client. This works perfectly in the editor. However, When I have a build on my Hololens 2. The application doesn't want to connect to my pc.

Steps to reproduce:

Do you know what might cause this issue or how I can solve it?

many thanks

itisnajim commented 2 years ago

Hello ThimoDev,

Have you tried using http pool transport instead of websocket and setting AutoUpgrade to false (AutoUpgrade default value is true If websocket is available, it will be automatically upgrade to use websocket) see: https://github.com/doghappy/socket.io-client-csharp#options https://stackoverflow.com/a/40805832

Hope this is helpful.

ThimoDEV commented 2 years ago

I found out there was a problem in our offices network security. After disabling that it worked. Thank you for all your help!