From 9c20591e3d83aaa113f6fed3d254fd58f5e7d7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 29 May 2022 19:58:30 +0200 Subject: [PATCH] add sendMessage. --- src/component/main.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/component/main.vue b/src/component/main.vue index 1ef7beae..cd311d9f 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -427,6 +427,10 @@ this.connection.websocket.send(EVENT.SEND_BROADCAST, { subject, body }) } + public sendMessage(event: string, payload?: any) { + this.connection.websocket.send(event, payload) + } + public withApi(c: new (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => T): T { return new c(this.api.config) }