mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-24 02:02:20 +00:00
Fix issue with websocket buffer.
This commit is contained in:
parent
f0f97f2eb6
commit
a4f023d250
|
@ -3,6 +3,7 @@ import { Observable } from "rxjs";
|
|||
import { share } from "rxjs/operators";
|
||||
import {
|
||||
ExponentialBackoff,
|
||||
LRUBuffer,
|
||||
Websocket as WS,
|
||||
WebsocketBuilder,
|
||||
} from "websocket-ts";
|
||||
|
@ -47,6 +48,7 @@ export class WebSocketService {
|
|||
console.error("Websocket closed.");
|
||||
})
|
||||
.withBackoff(new ExponentialBackoff(100, 7))
|
||||
.withBuffer(new LRUBuffer(1000))
|
||||
.build();
|
||||
}).pipe(share());
|
||||
|
||||
|
|
Loading…
Reference in a new issue