W3cubDocs

/Phoenix

mix phx.gen.presence

Generates a Presence tracker for your application.

mix phx.gen.presence

mix phx.gen.presence MyPresence

The only argument is the module name of the Presence tracker, which defaults to Presence.

A new file will be generated in:

  • lib/my_app_web/channels/presence.ex

Where presence.ex is the snake cased version of the module name provided.

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Presence.html