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);
}
});
- [Vuejs]-Error when using javascript component in typescript file Vue.js
- [Vuejs]-Axios Post with foreign key of int
Source:stackexchange.com