mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
improvement: remove tickets logic from useTickets to improve notifications
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user