mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-11 08:07:31 +02:00
socket -> websocket_peer.
This commit is contained in:
parent
d49542013b
commit
ff7efe9f3b
7 changed files with 68 additions and 68 deletions
|
@ -40,7 +40,7 @@ type MessageHandlerCtx struct {
|
|||
locked bool
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) Connected(session types.Session, socket types.WebSocket) (bool, string) {
|
||||
func (h *MessageHandlerCtx) Connected(session types.Session, websocket_peer types.WebSocketPeer) (bool, string) {
|
||||
if h.locked && !session.Admin(){
|
||||
h.logger.Debug().Msg("server locked")
|
||||
return false, "locked"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue