Mason Miscellaneous Events
Client to server
Section titled “Client to server”Description: Sets the account key for your session.
Parameters:
| NAME | TYPE |
|---|---|
| userKey | string |
logout
Section titled “logout”Description: Clears the account key for your session.
refresh
Section titled “refresh”Description: Makes the server re-send all the initialization messages. (clansData, friendsData, friendRequests)
setPlatform
Section titled “setPlatform”Description: Sets your platform. Before client and mobile lobbies were fused, this was what the matchmaking system used to determing your platform.
Parameters:
| NAME | TYPE |
|---|---|
| platform | string |
setVersion
Section titled “setVersion”Description: Sets your game version.
Parameters:
| NAME | TYPE |
|---|---|
| version | string |
setName
Section titled “setName”Description: Sets your nickname which will be used in-game.
Parameters:
| NAME | TYPE |
|---|---|
| name | string |
setStatus
Section titled “setStatus”Description: Sets your status. If you set it to ingame or offline, your friends won’t be able to send you party invites through the Friends tab.
Parameters:
| NAME | TYPE | OPTIONS |
|---|---|---|
| status | string | online, ingame, offline |
setIsInRound
Section titled “setIsInRound”Description: Sets your in-game status.
Parameters:
| NAME | TYPE |
|---|---|
| inRound | boolean |
Server to client
Section titled “Server to client”loggedIn
Section titled “loggedIn”Description: Is sent once your login message is processed.
Parameters:
| NAME | TYPE |
|---|---|
| userData | { userData: ApiUser } |