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

18 lines (17 sloc) 0.436 kb
<html>
<head>
<title>It worked</title>
<script src="/socket.io/socket.io.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function () {
var socket = new io.connect('http://' + window.location.hostname);
socket.on('message', function(msg){
alert("PCTRL " + msg); //This is caught by PhantomJS's onAlert
});
window.socket = socket;
};
</script>
</head>
<body>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.