0

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!

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.