NativeWebSocket icon indicating copy to clipboard operation
NativeWebSocket copied to clipboard

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

Open anjelomerte opened this issue 2 years ago • 1 comments

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!

anjelomerte avatar Jan 12 '23 07:01 anjelomerte

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.

AmirhosseinAzimyzadeh avatar Jun 26 '24 14:06 AmirhosseinAzimyzadeh