From b7dae81942d64961df3c75fa02a7e22a8bd72846 Mon Sep 17 00:00:00 2001 From: Rob Dodson Date: Mon, 4 Jun 2012 23:07:51 -0700 Subject: [PATCH] trying to get the socket to connect --- public/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/main.js b/public/js/main.js index 8a2c0ca..ca7570e 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,4 +1,4 @@ -var socket = io.connect('http://localhost'); +var socket = io.connect(window.location.hostname); socket.on('status', function (data) { $('#status').html(data.status);