Current section

Files

Jump to
channel_handler lib channel_handler.ex
Raw

lib/channel_handler.ex

defmodule ChannelHandler do
defmacro __using__(_opts) do
quote do
use ChannelHandler.Extension
import Phoenix.Socket, only: [assign: 2, assign: 3]
import Phoenix.Channel,
only: [
broadcast: 3,
broadcast!: 3,
broadcast_from: 3,
broadcast_from!: 3,
push: 3,
reply: 2
]
end
end
end