0
You should probably just use push on the array.
this.$socket.on('test', message => {
this.objects.push(message)
})
Since in the HTML you’re expecting an array of objects.
Source:stackexchange.com
0
You should probably just use push on the array.
this.$socket.on('test', message => {
this.objects.push(message)
})
Since in the HTML you’re expecting an array of objects.