mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-03 17:10:20 +08:00
Started logging on client
This commit is contained in:
@@ -31,12 +31,20 @@ window.GarageServerIO = (function (window, socketio) {
|
||||
registerSocketEvents = function (options) {
|
||||
socket.on('update', function(data) {
|
||||
updatePlayerInput(data, options);
|
||||
if (options.logging) {
|
||||
console.log('garageserver.io:: socket update ' + data);
|
||||
}
|
||||
});
|
||||
socket.on('ping', function(data, options) {
|
||||
|
||||
if (options.logging) {
|
||||
console.log('garageserver.io:: socket ping ' + data);
|
||||
}
|
||||
});
|
||||
socket.on('removePlayer', function(id, options) {
|
||||
removePlayer(id, options);
|
||||
if (options.logging) {
|
||||
console.log('garageserver.io:: socket removePlayer ' + id);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user