Refactor testmessenger JSON sending

This commit is contained in:
Kristóf Tóth 2018-04-10 14:26:43 +02:00
parent b6b647dc21
commit 2a56880b8e

View File

@ -18,6 +18,6 @@ export class TestmessengerComponent implements OnInit {
sendTestMessage() {
const jsonObject = JSON.parse(this.messageStr);
this.webSocketService.send(jsonObject['key'], jsonObject['data'], jsonObject['trigger']);
this.webSocketService.sendJSON(jsonObject);
}
}