Skip to content

Commit

Permalink
Trying other methods of catching connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanBUK committed Feb 6, 2011
1 parent b5318a2 commit 2407167
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/index.html
Expand Up @@ -37,6 +37,8 @@
var body_loaded = function () {
sock = new io.Socket();
sock.on('message', handleMessage);
sock.on('connection', alert('connection'));
sock.on('connect', alert('connect'));
sock.connect(function () {
// ts = document.getElementById('timestamp');
var name = prompt("Please enter your nickname:", "");
Expand Down

0 comments on commit 2407167

Please sign in to comment.