Name
obtainLease
Description
The
obtainLease command instructs the relay server to
issue a new lease for a peer.
Request
The following query string variables must be set by the client:
-
command Must be equal to
obtainLease-
peerId The peer ID of the client
Response
The following query string variable must be included by the relay server in the response:
-
leaseId The ID for the new lease
If the request is malformed, the response must
be 400. If the relay server rejects the
request, the response must be
400.
Example
The following listing shows an
example HTTP POST request body for the obtainLease
command:
command=obtainLease&peerId=foobar
The following listing shows an example HTTP POST request body for the
obtainLease command:
leaseId=1234
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access