mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 03:12:41 +02:00
new WS ControlRequest data type
This commit is contained in:
parent
c176411512
commit
70e8b215cb
5 changed files with 20 additions and 3 deletions
|
@ -31,9 +31,12 @@ func (h *MessageHandler) controlRelease(id string, session types.Session) error
|
|||
return nil
|
||||
}
|
||||
|
||||
func (h *MessageHandler) controlRequest(id string, session types.Session) error {
|
||||
func (h *MessageHandler) controlRequest(id string, session types.Session, payload *message.ControlRequest) error {
|
||||
// check for host
|
||||
if !h.sessions.HasHost() {
|
||||
// TODO: Keyboard Layout change.
|
||||
h.logger.Warn().Msgf("should set keyboard to %s", payload.KeyboardLayout)
|
||||
|
||||
// set host
|
||||
h.sessions.SetHost(id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue