[Vuejs]-VueSocket โ€“ Emit a message to all open app instances

0๐Ÿ‘

โœ…

As it turns out, the problem was on my backend server.

I was using

socket.emit('receivedMsg', postedMessage);

Which I changed to

io.sockets.emit('receivedMsg', postedMessage);

And now all browsers can see the message.

Leave a comment