send: body any type.

This commit is contained in:
Miroslav Šedivý 2021-01-28 17:11:26 +01:00
parent 962b84d89e
commit 54f7514336
2 changed files with 3 additions and 3 deletions

View File

@ -230,11 +230,11 @@
this.websocket.send('screen/set', { width, height, rate }) 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 }) 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 }) this.websocket.send('send/broadcast', { subject, body })
} }

View File

@ -32,7 +32,7 @@ export const CURSOR_IMAGE = 'cursor/image'
export const BORADCAST_STATUS = 'broadcast/status' 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 SEND_BROADCAST = 'send/broadcast'
export const FILE_CHOOSER_DIALOG_OPENED = 'file_chooser_dialog/opened' export const FILE_CHOOSER_DIALOG_OPENED = 'file_chooser_dialog/opened'