Download Latest Version v9.2.0 - Reconnection State Management source code.tar.gz (1.4 MB)
Email in envelope

Get an email when there's a new version of rpc-websockets

Home / v9.2.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-09-24 1.0 kB
v9.2.0 - Reconnection State Management source code.tar.gz 2025-09-24 1.4 MB
v9.2.0 - Reconnection State Management source code.zip 2025-09-24 1.4 MB
Totals: 3 Items   2.9 MB 0

New Features

Add reconnection state management capabilities to resolve issue [#178].

New Event

  • **** - Fired when all reconnection attempts have been exhausted

New Methods

  • **** - Get current reconnection attempt count
  • **** - Get maximum reconnection attempts configured
  • **** - Check if reconnection is in progress
  • **** - Check if client will attempt to reconnect

Example Usage

:::js
client.on('max_reconnects_reached', (code, reason) => {
    console.log('All reconnection attempts failed');
    // Handle permanent disconnection
});

if (client.willReconnect()) {
    showMessage('Will attempt to reconnect...');
} else {
    showMessage('No more reconnection attempts');
}

Changes

  • ✅ Fully backward compatible - no breaking changes
  • ✅ Comprehensive test coverage
  • ✅ Updated API documentation
  • ✅ Fixed edge case in close() method

Full Changelog: https://github.com/elpheria/rpc-websockets/compare/v9.1.3...v9.2.0

Source: README.md, updated 2025-09-24