From: Juliusz Chroboczek <jch@irif.fr> To: galene@lists.galene.org Subject: [Galene] New protocol feature: client status Date: Wed, 28 Apr 2021 14:57:27 +0200 [thread overview] Message-ID: <87a6pi36tk.wl-jch@irif.fr> (raw) Dear all, Due to popular demand, I've just added server-maintained application state to Galène. Every client now has a "status", which is maintained by the server. The server does not interpret the status, it just enforces permissions. The client status is an arbitrary JSON dictionary: {raisehand: true, mood: 'confused'} A client can change their status by sending a "userAction" message of kind "setstatus"; only the entries mentioned in the message are changed, the others are left as they were. Whenever the status of a user changes, a "user" message of the right kind (usually "change") is broadcast, and the "users" array reflects the new status. The protocol is designed so that in the future it might be possible to change other users' status, but this is not implemented yet -- you'll only be able to change your own status for now. While anything that can be done with status could in principle be done by userMessages, Alain and I have found that this leads to useless complication on the client side, so we've decided to maintain this small piece of data in the server. -- Juliusz
reply other threads:[~2021-04-28 12:57 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87a6pi36tk.wl-jch@irif.fr \ --to=jch@irif.fr \ --cc=galene@lists.galene.org \ --subject='Re: [Galene] New protocol feature: client status' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox