[Vuejs]-Vue-Socket Mutation Listener

0👍

Answer: mistake within the namespace connection event listeners.
I was setting up a connection with the namespace (complianceNamespace) then emitting events to a different connection (IO).
Correction code:

complianceNamespace.on("connection", (socket) => {
  socket.on("SOME_EVENT", function(user) {
    complianceNamespace.emit("SOME_EVENT", user);
  }
});

Leave a comment