[Vuejs]-Vuejs emit from soket.io trouble

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.

Leave a comment