Update WebSocket configuration and enhance logging in WalletWebSocketService
- Modified WebSocket configuration to allow enabling/disabling via environment variable, improving flexibility. - Enhanced logging in WalletWebSocketService to provide clearer messages during reconnection attempts and notify users of WebSocket issues. These changes improve the configurability and user experience of the wallet's WebSocket interactions.
This commit is contained in:
parent
71cec00bfc
commit
6a1e70303d
2 changed files with 10 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ export const appConfig: AppConfig = {
|
|||
baseUrl: import.meta.env.VITE_LNBITS_BASE_URL || 'http://localhost:5000'
|
||||
},
|
||||
websocket: {
|
||||
enabled: true,
|
||||
enabled: import.meta.env.VITE_WEBSOCKET_ENABLED !== 'false', // Can be disabled via env var
|
||||
reconnectDelay: 1000, // 1 second
|
||||
maxReconnectAttempts: 5
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue