mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-29 22:47:58 +02:00
session state decoupled.
This commit is contained in:
parent
4a28307c1e
commit
ecad2124fd
4 changed files with 8 additions and 19 deletions
|
@ -180,7 +180,7 @@ func (manager *WebSocketManagerCtx) Upgrade(w http.ResponseWriter, r *http.Reque
|
|||
return connection.Close()
|
||||
}
|
||||
|
||||
if session.IsConnected() {
|
||||
if session.State().IsConnected {
|
||||
// TODO: Refactor, return error code.
|
||||
if err = connection.WriteJSON(
|
||||
message.SystemDisconnect{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue