I have a NodeJS TCP socket server running and I'd like to add support for websockets. Has anyone tried mixing the two in one server?
It seems like you could create the HTTP server, implement the websocket upgrade handshake, and then hand off the socket to the TCP socket server. Is that the right approach?
I considered using socket.io, but it appears that would cut out TCP sockets.