config+lnd: make WebSocket interval/wait configurable

To make it possible to adapt the WebSocket ping interval and pong wait
time to custom situations, we add new configuration flags to customize
them.
This commit is contained in:
Oliver Gugger committed 2021-04-29 10:39:54 +02:00
1 parent 4b685e4d64
commit 5df69cf93f
3 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -1266,7 +1266,7 @@ func startRestProxy(cfg *Config, rpcServer *rpcServer, restDialOpts []grpc.DialO
// Wrap the default grpc-gateway handler with the WebSocket handler.
restHandler := lnrpc.NewWebSocketProxy(
mux, rpcsLog, lnrpc.DefaultPingInterval, lnrpc.DefaultPongWait,
mux, rpcsLog, cfg.WSPingInterval, cfg.WSPongWait,
lnrpc.LndClientStreamingURIs,
)