def METHOD_NAME(self):
    print 'robot token: ' + self.token
    self.command['cmd'] = self.REGISTER
    register_command = json.dumps(self.command)
    try:
        server_response = self.send_post(register_command, '/pushcmd')
        if server_response.json()['cmd'] == 'repeat':
            self.send_push_request()
        elif server_response.json()['cmd'] == 'abort':
            pass
        else:
            pass
    except ConnectionError:
        self.log('Server unavailable, reconnecting in 10 seconds...')
        time.sleep(10)
        self.METHOD_NAME()