mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 22:31:56 +00:00
Refactor testmessenger JSON sending
This commit is contained in:
parent
b6b647dc21
commit
2a56880b8e
@ -18,6 +18,6 @@ export class TestmessengerComponent implements OnInit {
|
|||||||
|
|
||||||
sendTestMessage() {
|
sendTestMessage() {
|
||||||
const jsonObject = JSON.parse(this.messageStr);
|
const jsonObject = JSON.parse(this.messageStr);
|
||||||
this.webSocketService.send(jsonObject['key'], jsonObject['data'], jsonObject['trigger']);
|
this.webSocketService.sendJSON(jsonObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user