Explorar o código

set maxRetries

Yuki Takei %!s(int64=5) %!d(string=hai) anos
pai
achega
f9d5884ac1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/server/service/config-pubsub/nchan.js

+ 1 - 0
src/server/service/config-pubsub/nchan.js

@@ -123,6 +123,7 @@ class NchanDelegator extends ConfigPubsubDelegator {
     const url = this.constructUrl(this.publishPath).toString();
     const socket = new ReconnectingWebSocket(url, [], {
       WebSocket,
+      maxRetries: 3,
       startClosed: true,
     });