mix phx.gen.presence
Generates a Presence tracker.
mix phx.gen.presence mix phx.gen.presence MyPresence
The argument, which defaults to Presence
, defines the module name of the Presence tracker.
Generates a new file, lib/my_app_web/channels/my_presence.ex
, where my_presence
is the snake-cased version of the provided module name.
© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Presence.html