improving game
This commit is contained in:
18
backend/lib/backend_web/channels/cluster_status_channel.ex
Normal file
18
backend/lib/backend_web/channels/cluster_status_channel.ex
Normal file
@@ -0,0 +1,18 @@
|
||||
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
|
||||
Reference in New Issue
Block a user