Definitions:
self
: the client sending/receiving the message (ra-dragon in this example)server
: the server receiving/sending the messagetarget
: another client (ra-beetle in this example)others
: all other clientsclients
: all clients
{
'ra-beetle': {
// player definition
is_you: true // only if the it's the client's object
},
// ...
}
// server to clients
{
'ra-beetle': {
// things to update; not all fields of a player needed.
},
// ...
}
// Server to all clients
ra-beetle // one symbol only, currently
// server to all clients
[
`ra-beetle`,
// ... symbols only.
]
// server to one client
ra-bottle-vapors // one spell symbol
// server to one client
{
'symbol': 'ra-bottle-vapors',
'cooldown': 20000, // milliseconds until ready
}