]> Untitled Git - lemmy-ui.git/commitdiff
Increasing timeout, removing isomporphic-ws
authorDessalines <tyhou13@gmx.com>
Tue, 27 Oct 2020 15:47:30 +0000 (10:47 -0500)
committerDessalines <tyhou13@gmx.com>
Tue, 27 Oct 2020 15:47:30 +0000 (10:47 -0500)
package.json
src/shared/services/WebSocketService.ts
yarn.lock

index dc808a6ef365f6941974ade103b57779e2d3e04b..433f54c83a897cf61064c3878e73a4c46dcb3646 100644 (file)
@@ -29,7 +29,6 @@
     "inferno-router": "^7.4.6",
     "inferno-server": "^7.4.6",
     "isomorphic-cookie": "^1.2.4",
-    "isomorphic-ws": "^4.0.1",
     "jwt-decode": "^3.0.0",
     "markdown-it": "^12.0.2",
     "markdown-it-container": "^3.0.0",
index 634a9b7ca0d96069919fbdd64a6c8250704778b9..0baf9b62960f9c15a704cec6617116976c8bf5ea 100644 (file)
@@ -63,7 +63,6 @@ import { i18n } from '../i18next';
 import { toast, isBrowser } from '../utils';
 import { Observable } from 'rxjs';
 import { share } from 'rxjs/operators';
-import WebSocket from 'isomorphic-ws';
 import {
   Options as WSOptions,
   default as ReconnectingWebSocket,
@@ -73,8 +72,7 @@ export class WebSocketService {
   private static _instance: WebSocketService;
   public ws: ReconnectingWebSocket;
   public wsOptions: WSOptions = {
-    WebSocket: WebSocket,
-    connectionTimeout: 1000,
+    connectionTimeout: 5000,
     maxRetries: 10,
   };
   public subject: Observable<any>;
index 70cd47f1c8316da3edd51188a3b5bee979dafed2..27bd358e97bc1d0db660ea2509fcd2ecdfc4618c 100644 (file)
--- a/yarn.lock
+++ b/yarn.lock
@@ -5254,11 +5254,6 @@ isomorphic-cookie@^1.2.4:
     cookie "^0.1.2"
     lodash.pick "^4.4.0"
 
-isomorphic-ws@^4.0.1:
-  version "4.0.1"
-  resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc"
-  integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==
-
 isstream@~0.1.2:
   version "0.1.2"
   resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"