mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-06 12:50:11 +08:00
Socket connectivity up and running
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user