do not remove user on disconnect.

This commit is contained in:
Miroslav Šedivý 2020-11-28 15:30:35 +01:00
parent 5699ad0bf9
commit 179a22476c

View File

@ -164,9 +164,6 @@ func (ws *WebSocketManagerCtx) Upgrade(w http.ResponseWriter, r *http.Request) e
Msg("connection ended") Msg("connection ended")
session.SetWebSocketConnected(false) session.SetWebSocketConnected(false)
// TODO: Enable persistent user autentication.
_ = ws.sessions.Delete(session.ID())
}() }()
ws.handle(connection, session) ws.handle(connection, session)