Connect to a session socket.
POST /api/v1/session/connect HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer ...
{
"client": "game"
}
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"socketUrl": "wss://ws1.ws.prod.theendlessmission.com/session",
"accessToken": "eyJhb...Qjg"
}Authentication is required.
NONE
NONE
| Name | Description | Value |
|---|---|---|
| client | the type of client connecting; game indicates the actual game client, while portal indicates the Content Portal website (behavior of the socket may be modulated by client type) | string; one of:
|
Successful responses are code 200 with data in the response body. Other error responses are standard.
| Name | Description | Value |
|---|---|---|
| socketUrl | the URL to use to establish a WebSocket connection | string |
| accessToken | a token granting access to the socket host, as a JWT | string |