Interface ServerPayloadAuthenticated

Hierarchy

  • ServerPayloadAuthenticated

Properties

d op

Properties

d: {
    user: User;
    users: User[];
}

Type declaration

  • user: User
  • users: User[]

    The currently online users who are relavent to the connector.

op: "AUTHENTICATED"

The payload sent when the client has successfully authenticated. This contains the data the user needs on startup.


Example

{
"op": "AUTHENTICATED",
"user": {
"id": 48615849987334,
"username": "barbaz",
"social_credit": 3,
"badges": 0,
"permissions": 0
},
"users": [
{
"id": 48615849987333,
"username": "foobar",
"social_credit": 42,
"badges": 0,
"permissions": 0
}
],
}