diff --git a/src/app/services/websocket.service.ts b/src/app/services/websocket.service.ts index e4a5fed..618a159 100644 --- a/src/app/services/websocket.service.ts +++ b/src/app/services/websocket.service.ts @@ -44,6 +44,10 @@ export class WebSocketService { const message = {'key': key}; if (data) { message['data'] = data; } if (trigger) { message['trigger'] = trigger; } - this.uplink.next(message); + this.sendJSON(message); + } + + public sendJSON(json: any) { + this.uplink.next(json); } }