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