Closed
Description
Hi,
I want to use socket io client that can work with the echo service of http://websocket.org/echo.html (ws://echo.websocket.org). However I tried creating the following code:
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('ws://echo.websocket.org');
console.log('done connect');
socket.on('connect', function (data) {
socket.send('hi from me');
});
console.log('done setup');
</script>
But I cannot seems to make it works, i.e. I didn't get the echo from the server.
Thanks in advance,
Idos
Metadata
Metadata
Assignees
Labels
No labels