mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-17 11:07:12 +02:00
WS remove connected & disconnected event.
This commit is contained in:
parent
d7b5bd6842
commit
7eee6debc7
2 changed files with 2 additions and 16 deletions
|
@ -56,13 +56,7 @@ func (h *MessageHandlerCtx) SessionConnected(session types.Session) error {
|
|||
}
|
||||
}
|
||||
|
||||
h.sessions.Broadcast(
|
||||
message.MemberID{
|
||||
Event: event.MEMBER_CONNECTED,
|
||||
ID: session.ID(),
|
||||
}, nil);
|
||||
|
||||
return nil
|
||||
return h.SessionStateChanged(session)
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error {
|
||||
|
@ -83,13 +77,7 @@ func (h *MessageHandlerCtx) SessionDisconnected(session types.Session) error {
|
|||
}, nil)
|
||||
}
|
||||
|
||||
h.sessions.Broadcast(
|
||||
message.MemberID{
|
||||
Event: event.MEMBER_DISCONNECTED,
|
||||
ID: session.ID(),
|
||||
}, nil);
|
||||
|
||||
return nil
|
||||
return h.SessionStateChanged(session)
|
||||
}
|
||||
|
||||
func (h *MessageHandlerCtx) SessionProfileChanged(session types.Session) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue