- Home /
System.Net.WebSockets Namespace not available in Unity generated Project
Hello Everyone!
Two days ago I developed my own WebSocket Client in C#.
I want to connect it with my Unity Project for Microsoft HoloLens but the Namespace System.Net.WebSockets does not exists.
I thoght about updating the .NET framework to 4.6 so i changed the API Compatibitility Level from 2.0 to 4.6 but that does not change anything. (maybe I have missed some settings?) or do I have to change something in Visual Studio too?
Hope you can help me out... I´m fustrated :(
Answer by StefanBeller · Aug 05, 2017 at 03:14 PM
Hello
You have to Update the Version of your UWP SDK in Visual Studio.
Go to the NuGet Installer and install the latest version of Microsoft.NETCore.UniversalWindowsPlatform then everythimg should work fine.
Greetings :)
Answer by BUWbrean · Dec 08, 2017 at 09:38 AM
Hi,
I just finished a Meteor/DDP implementation using Websockets. It uses the UWP-Websockets for Mixed Reality Headsets as well as System.Net for quick testing in Unity. Take a look at https://github.com/brean/UWP-DDP-Meteor-Client for the code and https://github.com/brean/MR_WebGl_cube_move for an example implementation.