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);