SOLVED: Help with WebSocket connection to pixelblaze

I am new to websockets and I am probably looking at user error, but when I try to use the arduino library Arduino-Websocket-Fast I can connect to the websocket echo at echo.websocket.org but when I try to connect to my pixelblaze it says that the handshake failed. What I am sending for a handshake is:

GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: 192.168.1.77
Sec-WebSocket-Key: F/WYsAmRj3nyj6yAhzW/gw==
Sec-WebSocket-Protocol: 
Sec-WebSocket-Version: 13

Any ideas on where I should start looking for my mistake?

SOLVED: Never mind. I had an http connection going to it at the same time. If I close that http connection the websocket does not give me back a connection reset by peer message.

1 Like