# SlenderChannel
A small, dependency-free module that exposes helpful macros for working with Phoenix Channels.
## Usage
The package can be installed by adding `slender_channel` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:slender_channel, "~> 0.1.0"}]
end
```
To leverage `SlenderChannel`, simply use it within your Phoenix Channel:
```elixir
defmodule YourPhoenixApp.YourChannel do
use YourPhoenixApp.Web, :channel
use SlenderChannel
def join("room:lobby", _, socket) do
# ...
end
handle_in_and_broadcast "bobby_dumped_stacy", %{"pettiness" => 10}
# Becomes:
#
# def handle_in("bobby_dumped_stacy", %{"pettiness" => 10}, socket)
# broadcast! socket, "bobby_dumped_stacy", %{"pettiness" => 10}
# {:noreply, socket}
# end
end
```