mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
improvement: rejoin websocket channels after reconnecting
This commit is contained in:
@@ -77,7 +77,7 @@ const NotificationsPopOver = () => {
|
||||
useEffect(() => {
|
||||
const socket = openSocket(process.env.REACT_APP_BACKEND_URL);
|
||||
|
||||
socket.emit("joinNotification");
|
||||
socket.on("connect", () => socket.emit("joinNotification"));
|
||||
|
||||
socket.on("ticket", data => {
|
||||
if (data.action === "updateUnread" || data.action === "delete") {
|
||||
|
||||
Reference in New Issue
Block a user