"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",
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,
private static _instance: WebSocketService;
public ws: ReconnectingWebSocket;
public wsOptions: WSOptions = {
- WebSocket: WebSocket,
- connectionTimeout: 1000,
+ connectionTimeout: 5000,
maxRetries: 10,
};
public subject: Observable<any>;
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"