sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.69k stars 1.66k forks source link

[Beginner] Implement Websocket on an Unity Project #361

Open Flowzer opened 7 years ago

Flowzer commented 7 years ago

Hi !

I downloaded the websocket-sharp-master and I would like to know how do I implement this on my Unity project.

My issue is to get json data from a server already exist and display it on the Unity console.

Thank you !

SoylentGraham commented 6 years ago

Here is an example in unity; https://github.com/NewChromantics/PopRelayClient/blob/master/PopRelayClient.cs#L103

(That repository may have more than you need, but the core of connecting and handling the messages is there)