Skip to Content
Xeonr Developer Docs

Collect relay dials

POST
/xmb.api.v1.HubAgentService/CollectRelayDials

Returns the relay rendezvous this hub should dial out to. Authenticated by the hub token.

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

hubToken?string
Length20 <= length <= 128
failures?array<>

Dials from a previous round that failed. Reported on the next call rather than through a channel of their own: the hub is about to ask anyway, and a separate report RPC would be a second thing that can be unreachable at the moment the first one already is.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.HubAgentService/CollectRelayDials" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "dials": [
    "map[pairingId:8d0f2b4c-6e1a-4c3d-9f5b-7a9c1e3d5f8a peerStaticKey:Rt5yU8iO2pA6sD9fG3hJ7kL1zX4cV0bN6mQ2wE8rT5Y= peerUuid:c81e4b2a-3f5d-4a7c-b9e0-1d2f3a4b5c6d relayEndpoint:relay-0.xmb.xeonr.dev:7443 ticket:eyJhbGciOiJSUzI1NiIsImtpZCI6Im1lZGlhLTEifQ.eyJhdWQiOiJyZWxheSJ9.EXAMPLE-signature]"
  ]
}