mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
17 lines
374 B
Elixir
17 lines
374 B
Elixir
|
defmodule PhilomenaWeb.FirehoseChannel do
|
||
|
use Phoenix.Channel
|
||
|
|
||
|
def join("firehose", _params, socket) do
|
||
|
{:ok, socket}
|
||
|
end
|
||
|
|
||
|
def join(_room, _params, _socket) do
|
||
|
{:error, %{reason: "not_found"}}
|
||
|
end
|
||
|
|
||
|
# Don't allow the connected client to send any messages to the socket
|
||
|
def handle_in(message, _params, socket) do
|
||
|
{:stop, :shutdown, socket}
|
||
|
end
|
||
|
end
|