base notification socket
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user