mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-13 11:50:54 +08:00
Progress: Interpolation
This commit is contained in:
@@ -74,7 +74,7 @@ GarageServer.prototype.onPlayerInput = function (socket, input, options) {
|
||||
};
|
||||
|
||||
GarageServer.prototype.onPing = function (socket, data, options) {
|
||||
socket.emit('ping', data);
|
||||
socket.emit('ping', { 'pingTime': data, 'serverTime': new Date().getTime() });
|
||||
if (options.onPing) {
|
||||
options.onPing(socket, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user