trying to get the socket to connect
This commit is contained in:
parent
a9d774fc17
commit
b7dae81942
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue