|
@@ -325,7 +325,7 @@ export default class XmppConnection extends Listenable {
|
325
|
325
|
logger.debug(`Scheduling next WebSocket keep-alive in ${intervalWithJitter}ms`);
|
326
|
326
|
|
327
|
327
|
this._wsKeepAlive = setTimeout(() => {
|
328
|
|
- const url = this.service.replace('wss', 'https').replace('ws', 'http');
|
|
328
|
+ const url = this.service.replace('wss://', 'https://').replace('ws://', 'http://');
|
329
|
329
|
|
330
|
330
|
fetch(url).catch(
|
331
|
331
|
error => {
|