<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
<script src="socket.io/socket.io.js"></script> | |
<script> | |
var socket = io.connect('http://localhost'); | |
socket.on('news', function (data) { | |
console.log(data); | |
}); | |
socket.emit('setinfo',{'bella merda':navigator.userAgent}) | |
</script> |
<script src="socket.io/socket.io.js"></script> | |
<script> | |
var socket = io.connect('http://localhost'); | |
socket.on('news', function (data) { | |
console.log(data); | |
}); | |
socket.emit('my other event', { my: 'data' }); | |
</script> | |
Ciao, sono un piccolo socket.io |