diff --git a/src/component/main.vue b/src/component/main.vue index 8d2b3f99..5f8b7dc4 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -230,11 +230,11 @@ this.websocket.send('screen/set', { width, height, rate }) } - public sendUnicast(receiver: string, subject: string, body: string) { + public sendUnicast(receiver: string, subject: string, body: any) { this.websocket.send('send/unicast', { receiver, subject, body }) } - public sendBroadcast(subject: string, body: string) { + public sendBroadcast(subject: string, body: any) { this.websocket.send('send/broadcast', { subject, body }) } diff --git a/src/component/types/events.ts b/src/component/types/events.ts index 09cb02c8..438407bc 100644 --- a/src/component/types/events.ts +++ b/src/component/types/events.ts @@ -32,7 +32,7 @@ export const CURSOR_IMAGE = 'cursor/image' export const BORADCAST_STATUS = 'broadcast/status' -export const SEND_UNICAST = 'send/unicast' +export const SEND_UNICAST = 'send/unicast' export const SEND_BROADCAST = 'send/broadcast' export const FILE_CHOOSER_DIALOG_OPENED = 'file_chooser_dialog/opened'