mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-10-01 11:40:44 +08:00
Progress: Client loop
This commit is contained in:
1 parent
c009deb540
commit
18cef256e1
1 file changed
+10
@@ -6,6 +6,16 @@ window.GarageServerIO = (function (window, socketio) {
|
||||
|
||||
connectToGarageServer = function (path, options) {
|
||||
io.connect(path + '/garageserver.io');
|
||||
registerSocketEvents();
|
||||
},
|
||||
|
||||
registerSocketEvents = function () {
|
||||
io.on('update', function(data) {
|
||||
|
||||
});
|
||||
io.on('ping', function(data) {
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
startGarageServerGame = function (options) {
|
||||
|
||||
Reference in new issue
Block a user