Added implementation for onServerPing to prevent random disconnects