Explorar el Código

set maxRetries

Yuki Takei hace 5 años
padre
commit
f9d5884ac1
Se han modificado 1 ficheros con 1 adiciones y 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,
     });