mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 12:05:11 +00:00
Refactor testmessenger JSON sending
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user