diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-07 18:48:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-07 18:48:38 +0900 |
| commit | 51f98020f649358b6f0dd8d32699d014793dfb60 (patch) | |
| tree | 70e964c0cfeb0bf201f98bfd7ea9f290f83c9c74 /src/client | |
| parent | Fix #4866 (diff) | |
| download | sharkey-51f98020f649358b6f0dd8d32699d014793dfb60.tar.gz sharkey-51f98020f649358b6f0dd8d32699d014793dfb60.tar.bz2 sharkey-51f98020f649358b6f0dd8d32699d014793dfb60.zip | |
Fix #4874
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/scripts/stream.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/app/common/scripts/stream.ts b/src/client/app/common/scripts/stream.ts index 23f839ae85..a1b4223b55 100644 --- a/src/client/app/common/scripts/stream.ts +++ b/src/client/app/common/scripts/stream.ts @@ -21,7 +21,7 @@ export default class Stream extends EventEmitter { const user = os.store.state.i; - this.stream = new ReconnectingWebsocket(wsUrl + (user ? `?i=${user.token}` : '')); + this.stream = new ReconnectingWebsocket(wsUrl + (user ? `?i=${user.token}` : ''), '', { minReconnectionDelay: 1 }); // https://github.com/pladaria/reconnecting-websocket/issues/91 this.stream.addEventListener('open', this.onOpen); this.stream.addEventListener('close', this.onClose); this.stream.addEventListener('message', this.onMessage); |