Skip to content
Browse files

Trying other methods of catching connection.

  • Loading branch information...
1 parent b5318a2 commit 2407167e829ad1dbd0ff3165aad928599efec702 @DanBUK DanBUK committed Feb 6, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 public/index.html
View
2 public/index.html
@@ -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:", "");

0 comments on commit 2407167

Please sign in to comment.
Something went wrong with that request. Please try again.