0

I'm looking at some tutorials to make a chat backend. In my case, I have users who will be creating their own rooms, plus rooms for specific topics that I will create.

In a lot of the tutorials and documentation, one defines a channel like:

channel "room:general", MyApp.Room

How to set up my channels so that users can create their own? For example, being able to result in the creation of room:[some id]?

user1354934
  • 8,139
  • 15
  • 50
  • 80
  • There's actually a plethora of phoenix example apps that handle dynamic channels, for example have a look at the [prater](https://medium.com/@ck3g/using-channels-in-phoenix-3ffa7d8115bb) app tutorial. You could probably do this with slightly less javascript in newer Phoenix versions – Hedde van der Heide Oct 09 '22 at 20:53

0 Answers0