mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 08:47:19 +00:00
Increasing timeout, removing isomporphic-ws
This commit is contained in:
parent
10669fb7c4
commit
1afeb7900e
|
@ -29,7 +29,6 @@
|
||||||
"inferno-router": "^7.4.6",
|
"inferno-router": "^7.4.6",
|
||||||
"inferno-server": "^7.4.6",
|
"inferno-server": "^7.4.6",
|
||||||
"isomorphic-cookie": "^1.2.4",
|
"isomorphic-cookie": "^1.2.4",
|
||||||
"isomorphic-ws": "^4.0.1",
|
|
||||||
"jwt-decode": "^3.0.0",
|
"jwt-decode": "^3.0.0",
|
||||||
"markdown-it": "^12.0.2",
|
"markdown-it": "^12.0.2",
|
||||||
"markdown-it-container": "^3.0.0",
|
"markdown-it-container": "^3.0.0",
|
||||||
|
|
|
@ -63,7 +63,6 @@ import { i18n } from '../i18next';
|
||||||
import { toast, isBrowser } from '../utils';
|
import { toast, isBrowser } from '../utils';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { share } from 'rxjs/operators';
|
import { share } from 'rxjs/operators';
|
||||||
import WebSocket from 'isomorphic-ws';
|
|
||||||
import {
|
import {
|
||||||
Options as WSOptions,
|
Options as WSOptions,
|
||||||
default as ReconnectingWebSocket,
|
default as ReconnectingWebSocket,
|
||||||
|
@ -73,8 +72,7 @@ export class WebSocketService {
|
||||||
private static _instance: WebSocketService;
|
private static _instance: WebSocketService;
|
||||||
public ws: ReconnectingWebSocket;
|
public ws: ReconnectingWebSocket;
|
||||||
public wsOptions: WSOptions = {
|
public wsOptions: WSOptions = {
|
||||||
WebSocket: WebSocket,
|
connectionTimeout: 5000,
|
||||||
connectionTimeout: 1000,
|
|
||||||
maxRetries: 10,
|
maxRetries: 10,
|
||||||
};
|
};
|
||||||
public subject: Observable<any>;
|
public subject: Observable<any>;
|
||||||
|
|
|
@ -5254,11 +5254,6 @@ isomorphic-cookie@^1.2.4:
|
||||||
cookie "^0.1.2"
|
cookie "^0.1.2"
|
||||||
lodash.pick "^4.4.0"
|
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:
|
isstream@~0.1.2:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
|
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
|
||||||
|
|
Loading…
Reference in a new issue