unity-websocket-server
unity-websocket-server copied to clipboard
Don't implement WebSocket Protocol from scratch
There is no need to maintain code that implements the websocket protocol. Just wrap the TcpClient stream with a factory method from the System library System.Net.Sockets.WebSocket.CreateFromStream(client.GetStream(), true, null, TimeSpan.FromSeconds(n))
and you get all the functionality for free.
you still need the negotiation step, but saves you from having to read and write data frames