mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
[next] Websocket Keep Alive (#2394)
* feat: added keepalive config * fix: format * fix: adjusted client timeout default * Update server.ts
This commit is contained in:
@@ -89,6 +89,7 @@ export default function createManagedSubscriptionClient(
|
||||
if (!subscriptionClient) {
|
||||
subscriptionClient = new SubscriptionClient(url, {
|
||||
reconnect: true,
|
||||
timeout: 60000,
|
||||
connectionCallback: err => {
|
||||
if (err) {
|
||||
// If an error is thrown as a result of live updates being
|
||||
|
||||
Reference in New Issue
Block a user