notify node: userIDguard

This commit is contained in:
Thanakorn S
2026-05-27 13:12:18 +07:00
parent 714b70d552
commit bbe89b0380
4 changed files with 47 additions and 12 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
if (typeof io === 'undefined') return;
window._socket = io('<?php echo NODE_PUBLIC_URL; ?>', {
query: { company_id: company_id },
query: { company_id: company_id, user_id: user_id, role: user_role },
reconnection: true,
reconnectionDelay: 2000,
});