mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-10 23:57:27 +02:00
update control WS.
This commit is contained in:
parent
4bbf3bb039
commit
2e090eb54d
6 changed files with 42 additions and 95 deletions
|
@ -58,11 +58,6 @@ func (h *MessageHandlerCtx) Message(session types.Session, raw []byte) error {
|
|||
err = h.controlRelease(session)
|
||||
case event.CONTROL_REQUEST:
|
||||
err = h.controlRequest(session)
|
||||
case event.CONTROL_GIVE:
|
||||
payload := &message.Control{}
|
||||
err = utils.Unmarshal(payload, raw, func() error {
|
||||
return h.controlGive(session, payload)
|
||||
})
|
||||
|
||||
// Screen Events
|
||||
case event.SCREEN_SET:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue