angular-websocket icon indicating copy to clipboard operation
angular-websocket copied to clipboard

socket.io support status ?

Open david-parsons opened this issue 8 years ago • 0 comments

I get a "WebSocket connection to 'ws://localhost:3000/' failed: Connection closed before receiving a handshake response" error (at v1.0.14/angular-websocket.js:362)

However, if I replace var dataStream = $websocket('ws://localhost:3000'); with a plain old socket.io : var socket = io.connect('ws://localhost:3000') .on('news', function (data) { console.log(data); }); it works just fine.

Is that because socket.io is not supported (as your TODO list tends to suggest) or am I missing something ?

david-parsons avatar Feb 20 '16 08:02 david-parsons