endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.27k stars 161 forks source link

Confirm that library does indeed work when deployed on Hololens 2 via Unity #75

Open anjelomerte opened 1 year ago

anjelomerte commented 1 year ago

Currently trying to establish a working WebSocket connection with the Hololens 2 as a client (developed in Unity for UWP).

Using my pc as the server and connecting to it (e.g. via ws://localhost:port) from within the Unity Editor (UWP platform) works perfectly fine. However, when deploying to the Hololens 2, the client performs a connection request, throws connection error and closes connection.

This leads me to believe that the library is actually working and the problem might be somewhere else. However, I wanted to make sure and would love to hear from anyone if they can indeed confirm a successful deployment on the Hololens 2 using this library. The internet returns different opinions on this matter...

Love the lib btw, great work!

Edit: It does!

AmirhosseinAzimyzadeh commented 5 months ago

Could you please share how you solved your problem? I have the same issue with HoloLens 2 connected to my local network (I am using IP address e.g. ws://192.168.1.1:8000). I tested the same code, and it works on an Android device but not on HoloLens.


Edit:

For anyone that might have the same problem make sure you enable internet access in build settings.