mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-31 18:07:05 +02:00
IsAdmin + IsConnected.
This commit is contained in:
parent
25fec63455
commit
123fbd8317
8 changed files with 16 additions and 16 deletions
|
@ -135,7 +135,7 @@ func (ws *WebSocketManagerCtx) Upgrade(w http.ResponseWriter, r *http.Request) e
|
|||
return connection.Close()
|
||||
}
|
||||
|
||||
if session.Connected() {
|
||||
if session.IsConnected() {
|
||||
// TODO: Refactor
|
||||
if err = connection.WriteJSON(
|
||||
message.SystemDisconnect{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue