Using WebSocket without IIS

I was wondering if there's a way to have the WebSocket class do the WebSocket handshake process instead of IIS.

I wrote my own WebSocket TCP server that does exactly that, but I'm not in the mood to write all the opcode/frame checks and decoding when I could be using a class that has been written specifically for that purpose.

Perhaps I could use some hybrid version where I have a separate server that serves the handshake, but then I'm not sure how I can accomplish having two servers listening to the same port. Handshake server + WebSocket server.

Any ideas? Thanks!

Answers


Since I couldn't find any way to utilize the .NET WebSocket class I ended up using a third party library called SuperWebSocket

It's really easy in use and does everything I need.


You can use also XSocket.NET http://xsockets.net/.

I have an implementation of a WebSocket server https://github.com/vtortola/WebSocketListener. It works similarly o a TcpListener.


Need Your Help

How to explicitly specify the size of an array parameter passed to a function

c# function parameters types size

I have a function which accepts a parameter named IV. Is there anyway that I can explicitly specify the size of the parameter IV to be 16 ?

WMI Filter in GPO by UserName/UseGroup

active-directory domain group-policy windows wmi

We have a need to lock certain users down to a very restrictive desktop on our terminal servers as well as only serve them a single application which will auto launch. I have a GPO setup for each n...