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
|
|
@ -15,6 +15,10 @@ defmodule ServerWeb.Endpoint do
|
|||
websocket: [connect_info: [session: @session_options]],
|
||||
longpoll: [connect_info: [session: @session_options]]
|
||||
|
||||
socket "/socket", ServerWeb.AgentSocket,
|
||||
websocket: [timeout: 45_000],
|
||||
longpoll: false
|
||||
|
||||
# Serve at "/" the static files from "priv/static" directory.
|
||||
#
|
||||
# You should set gzip to true if you are running phx.digest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue