shuttlepro-shared 1.4.32 → 1.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/socket.js +2 -1
- package/package.json +1 -1
package/config/socket.js
CHANGED
|
@@ -30,6 +30,7 @@ const initializeSocket = async (
|
|
|
30
30
|
server,
|
|
31
31
|
namespaceParam = "conversation",
|
|
32
32
|
redisChannel = "socket_events",
|
|
33
|
+
path = "/whatsapp-calling",
|
|
33
34
|
options = {}
|
|
34
35
|
) => {
|
|
35
36
|
const {
|
|
@@ -43,7 +44,7 @@ const initializeSocket = async (
|
|
|
43
44
|
|
|
44
45
|
// Initialize Socket.IO server if not already done
|
|
45
46
|
if (!io) {
|
|
46
|
-
io = new Server(server, { cors });
|
|
47
|
+
io = new Server(server, { path, cors });
|
|
47
48
|
console.log("✅ Socket.IO server initialized");
|
|
48
49
|
}
|
|
49
50
|
|