Restore connection.ping() in keepalive