How to keep track of username without global state

How would I keep track of all of the usernames of people in a chat application (the username may change on the fly, new people can join and leave at any time, there is no accounts). I tried global state, but the application kept acting strange so I stopped using global state. I am make the website with version 5.0.

1 Like

Any web framework will offer some notion of state (lest it be limited to stateless services), and it seems Rocket is no exception [1]: State - Rocket Programming Guide

  1. I do not use Rocket. This was found with a bog-standard document search. ↩ī¸Ž