improvement: remove tickets logic from useTickets to improve notifications

This commit is contained in:
canove
2020-09-25 18:53:14 -03:00
parent c7d3807219
commit 5396837db4
10 changed files with 190 additions and 163 deletions

View File

@@ -18,6 +18,11 @@ export const initIO = (httpServer: Server): SocketIO => {
socket.join("notification");
});
socket.on("joinTickets", status => {
console.log(`A client joined to ${status} tickets channel.`);
socket.join(status);
});
socket.on("disconnect", () => {
console.log("Client disconnected");
});