Authenticate with the server.
Prior to authentication, you should perform a GET request to
/api/v1/ui/config
to get the current configuration. Within the returned JSON
you will find all of the necessary fields to authenticate.
Optional
bot_Bot API key, if applicable
Optional
bot_Bot username connecting, if applicable
Optional
client?: stringClient name (your application name)
Optional
client_Client version string.
Optional
device_Client generated unique id for the device.
The JSON Web Token (user_jwt
field) from /api/v1/ui/config
. If
connecting as a guest, send ""
Optional
language?: stringISO 639-1 language code used on this device.
Optional
language_The version of the translation dictionary.
Optional
user_Browser user agent (or websocket library)
Sends a ping to the server. This message should be sent regularly. The default interval is 10 seconds. This keeps the connection alive and allows a client to measure clock drift and latency, both of which are vital to adjusting the client's game clock displays.
Client timestamp - milliseconds since epoch
Last clock drift measurement, or 0
Last latency measurement, or 0
Messages that clients send, regardless of target server