Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.582 kb
<script type="text/javascript" src="https://raw.github.com/LearnBoost/socket.io-client/0.7.5/dist/socket.io.js"></script>
<script type="text/javascript">
var userId = 55866;
var hash = '7f81776793e31d71d1ed71038e78dbf5';
var socket = io.connect('http://127.0.0.1:9601');
socket.on('connect', function () {
// authenticate
socket.emit('auth', userId, hash);
});
socket.on('message', function (message) {
// handle received message
alert(message);
});
</script>
Jump to Line
Something went wrong with that request. Please try again.