How to make web sockets working on Windows Phone platform?

Hello there!

We got a game that uses websockets to connect with the server. (web socket sharp library)

However we couldn’t compile the project with this library on Windows Phone platform.
We cannot find other library which work, so we are pretty much stuck here :slight_smile:

Can somebody give us recommendation or hint which library use or how to make websockets working on windows phone?

thank you!!

You could, if you don’t find any other option and you’re targeting WP8.1 or higher, directly use Windows API, it supports web sockets:

thank Tautvydas Zilys for so fast reply :slight_smile:

how do I use it in unity? It says it cannot find the
Windows.Networking.Sockets names space

at this point we will try implementing websockets on our own:

hope it will be useful for others :slight_smile:

Please, read information in our manual, it has samples on how to use platform specific APIs in scripts:

Here’s the actual link that shows how to use platform specific APIs in scripts: