19 lines
410 B
Elixir
19 lines
410 B
Elixir
defmodule BackendWeb.ClusterStatusChannel do
|
|
@moduledoc """
|
|
Channel for cluster status information
|
|
"""
|
|
use BackendWeb, :channel
|
|
require Logger
|
|
|
|
@impl true
|
|
def join("clusterstatus", _params, socket) do
|
|
Logger.info("Client joined clusterstatus channel")
|
|
{:ok, %{status: "connected"}, socket}
|
|
end
|
|
|
|
@impl true
|
|
def handle_in(_event, _payload, socket) do
|
|
{:noreply, socket}
|
|
end
|
|
end
|