update clipboard WS.

This commit is contained in:
Miroslav Šedivý 2020-11-30 17:40:38 +01:00
parent 2c210f3cf1
commit e93d167be6
6 changed files with 27 additions and 27 deletions

View file

@ -98,8 +98,8 @@ func (ws *WebSocketManagerCtx) Start() {
}
if err := session.Send(
message.Clipboard{
Event: event.CONTROL_CLIPBOARD,
message.ClipboardData{
Event: event.CLIPBOARD_UPDATED,
Text: text,
}); err != nil {
ws.logger.Warn().Err(err).Msg("could not sync clipboard")