@vgroup/dialbox 0.2.82 → 0.2.84
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.
|
@@ -1647,7 +1647,7 @@ class IncomeingCallSocketService {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
connect() {
|
|
1649
1649
|
// Replace with your WebSocket URL
|
|
1650
|
-
this.socket = new WebSocket(`${environment.websocketUrl}incoming/call
|
|
1650
|
+
this.socket = new WebSocket(`${environment.websocketUrl}incoming/call`);
|
|
1651
1651
|
this.socket.onopen = () => {
|
|
1652
1652
|
console.log("WebSocket connected");
|
|
1653
1653
|
// Authenticate (if needed)
|
|
@@ -1675,7 +1675,7 @@ class IncomeingCallSocketService {
|
|
|
1675
1675
|
};
|
|
1676
1676
|
this.socket.onclose = () => {
|
|
1677
1677
|
console.warn("WebSocket disconnected");
|
|
1678
|
-
setTimeout(() => this.connect(),
|
|
1678
|
+
setTimeout(() => this.connect(), 100); // Auto-reconnect
|
|
1679
1679
|
};
|
|
1680
1680
|
}
|
|
1681
1681
|
listen() {
|