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();
},