Phoenix v1.3.2 mix phoenix.gen.channel View Source

Generates a Phoenix channel.

mix phoenix.gen.channel Room

Accepts the module name for the channel

The generated model will contain:

  • a channel in web/channels
  • a channel_test in test/channels