feat(server): agent socket endpoint, clear online status on boot
This commit is contained in:
parent
b141ee7816
commit
d9a52db4ea
3 changed files with 19 additions and 1 deletions
12
server/lib/server_web/channels/agent_socket.ex
Normal file
12
server/lib/server_web/channels/agent_socket.ex
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
defmodule ServerWeb.AgentSocket do
|
||||
@moduledoc "Entry socket for agents. Actual authentication happens in HostChannel.join/3."
|
||||
use Phoenix.Socket
|
||||
|
||||
channel "host:*", ServerWeb.HostChannel
|
||||
|
||||
@impl true
|
||||
def connect(_params, socket, _connect_info), do: {:ok, socket}
|
||||
|
||||
@impl true
|
||||
def id(_socket), do: nil
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue