mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-01 16:50:06 +08:00
Progress: Client loop
This commit is contained in:
@@ -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