Hello, I'm quite new to gleam coming from elixer and I am wondering if passing all of your actors subjects (lobby, games, active_players) via context for every request or in this case into the ws handler is the affective way of doing so?
let assert Ok(lobby) = lobby.create_lobby_actor()
let ctx = ws_handler.Context(lobby_sub: lobby)
// ...
[] -> ws_handler.handle_ws_path(req, ctx)
// ...
Im more use to simply creating an elixer genserver or such, and utilizing the module name or atom.