You need to write a WebSocket server. At first I tried to use a Socket and got a lot of problems: handshake , data decoding, etc. I started looking for something ready, found out that there is System.Net.WebSockets in .net , I began to understand and nothing is clear. Does anyone know how to use it without using asp ? Maybe some kind of ... Google does not help.
- This is a little wrong. I need to work with the WebSocket protocol. - Sergey Kolesnikov
- And, I understood, then not that. - VladD
- and what exactly does not work with System.Net.WebSockets ? - Grundy
- @SergeyKolesnikov look at SignalR. more here . - Stack
- @SergeyKolesnikov "without using asp" - there is a replacement, called OWIN. description and examples are here - Stack
|
1 answer
The ready implementation of WebSocket frame decoding was discussed in this question . If you are interested in the whole solution, there is a link below. It also has a handshake; decoding messages for a client is a fully working WebSocket server
|