Is it possible to start a supervisor module in ejabberd which I can add a gen_fsm
module to, per connection?
Specifically, I want to create a supervisor which I start when the server starts (or when connections come in). And I have a couple of gen_server
s which I want to start, but the part I'm looking for some guidance on is how to dynamically add a gen_fsm
module to my supervisor when I see this user's presence become available?