Dynamic Topics

Let's dive into the details of dynamic topics and their role in Channels.


Topics are string identifiers used to connect to the correct Channel when the phx_join message is received by the Socket. They are defined in the Socket module, as we previously saw with our UserSocket example.

Get hands-on with 1200+ tech skills courses.