Removed hardcode GarageServer.IO server path

This commit is contained in:
Jeremiah Billmann
2015-05-16 20:52:54 -05:00
parent 4b99023ce1
commit 2c2a258718
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -181,6 +181,9 @@ var GarageServerIO = (function (socketio) {
initializeGarageServer = function (path, options) {
_options = options;
if(path == null || path.length <= 0) {
throw new Error('GarageServer.IO client is missing the server path - please verify the path argument passed to GarageServerIO.initializeGarageServer.');
}
_socket = _io.connect(path + '/garageserver.io');
registerSocketEvents();
},
+1 -1
View File
@@ -7,7 +7,7 @@ $(function () {
window.addEventListener('resize', resizeCanvas, false);
GarageServerIO.initializeGarageServer('https://garageserver_io-c9-jbillmann.c9.io', {
GarageServerIO.initializeGarageServer('', {
logging: true,
onReady: startGame,
onUpdatePlayerPrediction: GamePhysics.getNewPlayerState,