mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
[verto-communicator] - Added change server feature
When someone set any wss server and do login VC doesn't record the settings on localStorage, so when we reload the browser, it will try to connect on "wss://" + window.location.hostname + ":8082" and if this wss server is offline for any reason, user will be stuck on splash screen by auto-login step plus reconnect modal blocking any action. - Added button "Change Server" on modal reconnection alert; - Stop jsonRpcClient retry timeout and delete verto instance to create a new one when user login with new wss server; - Record wss server and hostname on localStorage.
This commit is contained in:
@@ -359,6 +359,11 @@
|
||||
return self._ws_socket ? true : false;
|
||||
};
|
||||
|
||||
$.JsonRpcClient.prototype.stopRetrying = function() {
|
||||
if (self.to)
|
||||
clearTimeout(self.to);
|
||||
}
|
||||
|
||||
$.JsonRpcClient.prototype._getSocket = function(onmessage_cb) {
|
||||
// If there is no ws url set, we don't have a socket.
|
||||
// Likewise, if there is no window.WebSocket.
|
||||
|
Reference in New Issue
Block a user