Permalink
Browse files

Updated io.Socket initialization to work on hosts other than localhost

Updated client
  • Loading branch information...
1 parent 0f783bc commit 3134940ed65cd8e832305d7c3ce823139c77243b @rauchg rauchg committed May 28, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/chat.html
  2. +1 −1 test/client
View
@@ -25,7 +25,7 @@
document.getElementById('text').value = '';
}
- var socket = new io.Socket('localhost', {rememberTransport: false, port: 8080});
+ var socket = new io.Socket(null, {rememberTransport: false, port: 8080});
socket.connect();
socket.addEvent('message', function(data){
var obj = JSON.parse(data);

0 comments on commit 3134940

Please sign in to comment.