expose get_server_endpoints and associated connect method