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) }