From 54f7514336f2944746a3ed1ace41616da1097c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 28 Jan 2021 17:11:26 +0100 Subject: [PATCH] send: body any type. --- src/component/main.vue | 4 ++-- src/component/types/events.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'