Socket connectivity up and running

This commit is contained in:
Jeremiah Billmann
2013-05-19 16:03:07 -04:00
parent fda56a0e75
commit c12bbbf0af
4 changed files with 17 additions and 4 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
window.GarageServerIO = (function (socketio) {
this.io = socketio;
var io = socketio,
var connectGarageServer = function (path) {
this.io.connect(path + '/garageserver');
connectToGarageServer = function (path) {
io.connect(path + '/garageserver');
};
return {
connectGarageServer: connectGarageServer
connectToGarageServer: connectToGarageServer
};
}) (io);