Skip to content

Commit

Permalink
socket.io namespace fix on sub2.mydomain.com
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Braitsch committed Jun 12, 2013
1 parent c4d3057 commit 577721c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sub2.mydomain.com/app/public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $(document).ready(function() {
$('#msg').keypress(function(e){ if (e.keyCode === 13) { sendMessage(); return false; } })

// initialize the socket connection to listen on the 'chat' namespace //
socket = io.connect('/chat-sub1');
socket = io.connect('/chat-sub2');
socket.on('status', function (connections) {
var i=0; for (p in connections) i++;
var s = i > 1 ? ' are '+i+' People ' : ' is '+i+' Person ';
Expand Down

0 comments on commit 577721c

Please sign in to comment.