angular-websocket
angular-websocket copied to clipboard
socket.io support status ?
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 ?