Phoenix v1.2.1 Mix.Tasks.Phoenix.Gen.Presence

Generates a Presence tracker for your application.

mix phoenix.gen.presence

mix phoenix.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:

  • web/channels/presence.ex

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

Summary

Functions

Callback implementation for c:Mix.Task.run/1

Functions

run(list)

Callback implementation for c:Mix.Task.run/1.