base notification socket

This commit is contained in:
hamid zarghami
2025-12-11 11:47:54 +03:30
parent 684d16ca7d
commit 610a82c1d5
4 changed files with 81 additions and 1 deletions
+2
View File
@@ -74,6 +74,7 @@ export const useSocket = (
reconnection: boolean;
reconnectionAttempts: number;
reconnectionDelay: number;
transports: string[];
auth?: { token: string };
query?: Record<string, string>;
} = {
@@ -81,6 +82,7 @@ export const useSocket = (
reconnection,
reconnectionAttempts,
reconnectionDelay,
transports: ["websocket", "polling"], // مثل کد HTML
};
if (token) {