Hey, finally I have a TCP socket working on Glitch. I’m using the WebSocket handshaking in order to set up the socket channel, and it works. The socket is opened and I can send data from c# client to node.js glitch app but, there is always a but, I can receive data from client, but I don’t know why I can send anything back. Maybe I’m missing something in my handshake:
GET / HTTP/1.1 Host: tcp-socket.glitch.me Upgrade: WebSocket Connection: Upgrade \n
And then, the server responds (yes, this one is sent to the client :-?):
HTTP / 1.1 101 WebSocket Protocol Handshake Upgrade: WebSocket Connection: Upgrade \n \n
After that, I can send whatever I want from the client to the server but I can’t send anything from server to client.