Linked Questions

Popular Questions

OBS-websocket handshake not working with arduino

Asked by At

I have little project with arduino and obs.

I use arduino websocket-fast(because original is to large to save on micro) library to connect.

If i try to connect to echo.websocket.org everything works fine.

Connected via http
Client connected
Sending websocket upgrade headers
Analyzing response headers
1 - means still connected
0 - means no data recieved yet
Waiting... (wait 100ms)
Waiting... (wait 100ms)
Waiting... (wait 100ms) 
Some data recieved...printing...
Got Header: HTTP/1.1 101 Web Socket Protocol Handshake
Got Header: Connection: Upgrade
Got Header: Date: Thu, 07 Feb 2019 13:27:47 GMT
Got Header: Sec-WebSocket-Accept: NNHZQty4b7boWyUcnDmRlnVp/0s=
Got Header: Server: Kaazing Gateway
Got Header: Upgrade: websocket
Got Header: 
Websocket established
Handshake successful

If i try connect to obs-websocket server runs localy on port 4444 (in my case arduino IP is 192.168.100.230 and obs ip is 192.168.100.2 and is pingable)

after sending upgrade headers obs close connection and do not init websocket. So connection get closed and program will stop.

    Connected
    Client connected
    Sending websocket upgrade headers
    Analyzing response headers
    0 - means server afted send headers close connection
    0 - means no data recieved yet
    Websocket failed
    Handshake failed connection closed by server

Have somebody some advice?

Related Questions