ref: e66a130c264d5658002d4dd40b1116a39b2241ce arborchat/specifications/twig-extensions/active-status/index.md -rw-r--r-- 995 bytes
e66a130cChris Waldon fix: link to toml directly 3 months ago

#Active Status

Twig metadata which indicates whether or not a user is or is not online. Field specification in spec.toml.


An 'active status' message is designed to be sent as 'active' when a user connects to a forest, with the client sending an 'inactive' message upon exit. This minimizes the number of messages sent by the client. In case of unclean exits however, it is generally used in combination with expiration. E.g. send an active status message that is "live" for 5 minutes during client startup and every consecutive 5 minutes. In this case it is still recommended to send an "inactive" message during client shutdown/disconnect.

Active Status messages should also be invisible.

It is up to the client to keep a running map of users that have un-expired "active" messages to determine who is online. An example of one solution to this can be found in fores-ex.