Use correct host in game client

This commit is contained in:
Henry Wang 2017-03-02 18:00:09 -06:00
parent c65cfe14b2
commit 57efbb5837

View File

@ -66,7 +66,7 @@ $(function() {
error.text("Loading..."); //TODO: show loading screen. error.text("Loading..."); //TODO: show loading screen.
var success = false; var success = false;
var socket = io('http://paper-io-thekidofarcrania.c9users.io:8081', { var socket = io('http://' + window.location.hostname + ':8081', {
'forceNew': true, 'forceNew': true,
upgrade: false, upgrade: false,
transports: ['websocket'] transports: ['websocket']
@ -142,7 +142,7 @@ var frameCache = []; //Frames after our request.
function connectServer() { function connectServer() {
io.j = []; io.j = [];
io.sockets = []; io.sockets = [];
socket = io('http://paper-io-thekidofarcrania.c9users.io:8081', { socket = io('http://' + window.location.hostname + ':8081', {
'forceNew': true, 'forceNew': true,
upgrade: false, upgrade: false,
transports: ['websocket'] transports: ['websocket']