From 147aa0e1a305e85786b2560aeb6fcdfeb4650b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 30 Nov 2020 15:48:19 +0100 Subject: [PATCH] updated websocket events with TODO comments. --- internal/types/event/events.go | 54 +++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/internal/types/event/events.go b/internal/types/event/events.go index 825015ee..b6f22c5f 100644 --- a/internal/types/event/events.go +++ b/internal/types/event/events.go @@ -1,44 +1,64 @@ package event const ( + SYSTEM_CONNECT = "system/connect" // TODO: New. SYSTEM_DISCONNECT = "system/disconnect" ) const ( + SIGNAL_REQUEST = "signal/request" // TODO: New. SIGNAL_ANSWER = "signal/answer" SIGNAL_PROVIDE = "signal/provide" ) const ( - MEMBER_LIST = "member/list" + MEMBER_LIST = "member/list" // TODO: Remove. MEMBER_CONNECTED = "member/connected" + MEMBER_UPDATED = "member/updated" // TODO: New. MEMBER_DISCONNECTED = "member/disconnected" ) const ( - CONTROL_LOCKED = "control/locked" - CONTROL_RELEASE = "control/release" - CONTROL_REQUEST = "control/request" - CONTROL_REQUESTING = "control/requesting" - CONTROL_GIVE = "control/give" - CONTROL_CLIPBOARD = "control/clipboard" - CONTROL_KEYBOARD = "control/keyboard" + CONTROL_LOCKED = "control/locked" // TODO: Remove. + CONTROL_REQUESTING = "control/requesting" // TODO: Remove. + CONTROL_GIVE = "control/give" // TODO: Remove. + CONTROL_CLIPBOARD = "control/clipboard" // TODO: Remove. + CONTROL_KEYBOARD = "control/keyboard" // TODO: Remove. + CONTROL_UPDATED = "control/updated" // TODO: New. + CONTROL_RELEASE = "control/release" + CONTROL_REQUEST = "control/request" + CONTROL_MOVE = "control/move" // TODO: New. (fallback) + CONTROL_SCROLL = "control/scroll" // TODO: New. (fallback) + CONTROL_KEYDOWN = "control/keydown" // TODO: New. (fallback) + CONTROL_KEYUP = "control/keyup" // TODO: New. (fallback) ) const ( - SCREEN_CONFIGURATIONS = "screen/configurations" - SCREEN_RESOLUTION = "screen/resolution" - SCREEN_SET = "screen/set" + SCREEN_CONFIGURATIONS = "screen/configurations" // TODO: Remove. + SCREEN_RESOLUTION = "screen/resolution" // TODO: Remove. + + SCREEN_UPDATED = "screen/updated" // TODO: New. + SCREEN_SET = "screen/set" ) const ( - BORADCAST_STATUS = "broadcast/status" - BORADCAST_CREATE = "broadcast/create" - BORADCAST_DESTROY = "broadcast/destroy" + CLIPBOARD_UPDATED = "clipboard/updated" // TODO: New. + CLIPBOARD_SET = "clipboard/set" // TODO: New. ) const ( - ADMIN_CONTROL = "admin/control" - ADMIN_RELEASE = "admin/release" - ADMIN_GIVE = "admin/give" + KEYBOARD_MODIFIERS = "keyboard/modifiers" // TODO: New. + KEYBOARD_LAYOUT = "keyboard/layout" // TODO: New. +) + +const ( + BORADCAST_STATUS = "broadcast/status" // TODO: Remove. + BORADCAST_CREATE = "broadcast/create" // TODO: Remove. + BORADCAST_DESTROY = "broadcast/destroy" // TODO: Remove. +) + +const ( + ADMIN_CONTROL = "admin/control" // TODO: Remove. + ADMIN_RELEASE = "admin/release" // TODO: Remove. + ADMIN_GIVE = "admin/give" // TODO: Remove. )