Skip to content

Commit

Permalink
Updated io.Socket initialization to work on hosts other than localhost
Browse files Browse the repository at this point in the history
Updated client
  • Loading branch information
rauchg committed May 28, 2010
1 parent 0f783bc commit 3134940
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/chat.html
Expand Up @@ -25,7 +25,7 @@
document.getElementById('text').value = ''; 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.connect();
socket.addEvent('message', function(data){ socket.addEvent('message', function(data){
var obj = JSON.parse(data); var obj = JSON.parse(data);
Expand Down
2 changes: 1 addition & 1 deletion test/client
Submodule client updated from 1e0e9f to d643e6

0 comments on commit 3134940

Please sign in to comment.