max-mapper / websocket-stream

websockets with the node stream API
BSD 2-Clause "Simplified" License
667 stars 114 forks source link

realtimecats.com doesn't work #133

Closed roccomuso closed 6 years ago

roccomuso commented 6 years ago

The example on the homepage doesn't work. Probably for a realtimecats.com issue. I've tested it successfully with wss://echo.websocket.org.

This the error:

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: unexpected server response (200)
    at ClientRequest._req.on (/tmp/asd/node_modules/ws/lib/WebSocket.js:656:26)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at HTTPParser.parserOnIncomingClient (_http_client.js:473:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
mcollina commented 6 years ago

Ouch, would you mind sending a PR to fix it? Maybe pinging echo.websockets.org.

max-mapper commented 6 years ago

It's a joke domain :D