Authentication
Type: AUTH
This operation is used by clients to authenticate with the Gateway. During this you also decide which clients you want to receive data from.
{
type: "AUTH",
data: {
subscribe_to: {
to_company: 1
},
game: "ets2"
}
}
| Parameter | Type | Optional |
|---|---|---|
subscribe_to.all_drivers | Boolean | Yes |
subscribe_to.to_drivers | Array | Yes |
subscribe_to.to_driver | String | Yes |
subscribe_to.to_company | Number | Yes |
game | String (ets2 or ats) | Yes |