I'm trying to program a websocket client for the HoloLens using System.Net.Sockets;
.
It works in Unity but when I try to build it for the HoloLens I get errors like:
Socket does not contain a definition of Connect
The websocket libraries for Unity also don't work. How can I create a websocket client for the HoloLens?
I believe you will need to use websockets for UWP for the hololens and use System.Net.Sockets
for the Unity Editor and wrap the UWP code in NETFX_CORE
or WINDOWS_UWP
define.
You could use WWW unity object to send and receive http requests/answers! I had no problem connecting with http protocol with the hololens using this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With