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:
3 files changed
+15
-1
No files matched your search
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user