Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 827a7cae66
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 0.607 kb
<!doctype html>
<html>
<head>
<meta HTTP-equiv="X-UA-Compatible" content="IE=EDGE">
<script src="/socket.io/socket.io.js">
</script>
<script type="text/javascript">
function init() {
socket = new io.Socket(location.hostname);
socket.on('message', function(data){
console.log(data);
});
socket.on('connect', function(){
console.log("Imma connectad!");
console.log(socket);
socket.send({msg: "Erlang rulez!"});
});
socket.connect();
}
</script>
</head>
<body onLoad="init()">
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.