Archived
2
0

add new WS keyboard event

This commit is contained in:
Miroslav Šedivý
2020-06-16 00:55:14 +02:00
parent 56bd6acf10
commit 6206fbbadd
7 changed files with 39 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export const EVENT = {
REQUESTING: 'control/requesting',
CLIPBOARD: 'control/clipboard',
GIVE: 'control/give',
KEYBOARD: 'control/keyboard'
},
CHAT: {
MESSAGE: 'chat/message',
@ -67,6 +68,7 @@ export type ControlEvents =
| typeof EVENT.CONTROL.REQUEST
| typeof EVENT.CONTROL.GIVE
| typeof EVENT.CONTROL.CLIPBOARD
| typeof EVENT.CONTROL.KEYBOARD
export type SystemEvents = typeof EVENT.SYSTEM.DISCONNECT
export type MemberEvents = typeof EVENT.MEMBER.LIST | typeof EVENT.MEMBER.CONNECTED | typeof EVENT.MEMBER.DISCONNECTED

View File

@ -31,6 +31,7 @@ export type WebSocketPayloads =
| ControlPayload
| ControlRequestPayload
| ControlClipboardPayload
| ControlKeyboardPayload
| ChatPayload
| ChatSendPayload
| EmojiSendPayload
@ -125,6 +126,10 @@ export interface ControlClipboardPayload {
text: string
}
export interface ControlKeyboardPayload {
layout: string
}
/*
CHAT PAYLOADS
*/