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 :frowning:

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 :slight_smile:

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 GitHub - brean/geometry_position_Unity3D_WebGL: Create and move cubes in WebGL and see them moving in Mixed Reality (using Meteor) for an example implementation.