GitPedia
elpheria

elpheria/rpc-websockets

JSON-RPC 2.0 implementation over WebSockets for Node.js and JavaScript/TypeScript

30 Releases
Latest: 1mo ago
v10.0.1Latest
mkozjakmkozjak·1mo ago·May 15, 2026
GitHub

This release requires Node.js >= 18 because the project now uses the core UUID crypto library that was introduced on Node.js v18.

v9.2.0 - Reconnection State Managementv9.2.0
mkozjakmkozjak·9mo ago·September 24, 2025
GitHub

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 {
  • + 3 more

📋 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
v9.1.1
mkozjakmkozjak·1y ago·March 1, 2025
GitHub

📋 What's Changed

  • Revert breaking change wrt to `rpc_id` by @cryptopapi997 in https://github.com/elpheria/rpc-websockets/pull/174

New Contributors

  • @cryptopapi997 made their first contribution in https://github.com/elpheria/rpc-websockets/pull/174
  • Full Changelog: https://github.com/elpheria/rpc-websockets/compare/v9.1.0...v9.1.1
v9.0.5
mkozjakmkozjak·1y ago·February 23, 2025
GitHub

📋 What's Changed

  • build(deps): bump serialize-javascript and mocha by @dependabot in https://github.com/elpheria/rpc-websockets/pull/171
  • Full Changelog: https://github.com/elpheria/rpc-websockets/compare/v9.0.4...v9.0.5
v9.0.4
mkozjakmkozjak·1y ago·September 25, 2024
GitHub

**Full Changelog**: https://github.com/elpheria/rpc-websockets/compare/v9.0.3...v9.0.4

v9.0.1
mkozjakmkozjak·2y ago·June 13, 2024
GitHub

Update eventemitter3 to v5.

v9.0.0
mkozjakmkozjak·2y ago·June 11, 2024
GitHub

Dual-build for ESM and CJS Please check this PR description for important changes happening in v9: https://github.com/elpheria/rpc-websockets/pull/164

v8.0.1
mkozjakmkozjak·2y ago·June 6, 2024
GitHub

Switched to ESNext (ESM). Make sure to use `import` instead of `require` to import this package.

v7.10.0
mkozjakmkozjak·2y ago·April 15, 2024
GitHub
v7.9.0
mkozjakmkozjak·2y ago·December 15, 2023
GitHub
v7.8.0
mkozjakmkozjak·2y ago·November 22, 2023
GitHub

Makes RPC params optional on client request. #152

v7.7.0
mkozjakmkozjak·2y ago·November 17, 2023
GitHub

Adds support for optional defining of Data Packs. https://github.com/elpheria/rpc-websockets/commit/c7a07fc428ac3b7ff7d30107f33acbb4a03a0103

v7.6.0
mkozjakmkozjak·2y ago·August 14, 2023
GitHub
v7.4.16
mkozjakmkozjak·4y ago·October 25, 2021
GitHub

**7.4.16 (Oct 25, 2021)** BUGFIXES: Use delete to avoid memory leak #122

v7.4.15
mkozjakmkozjak·4y ago·October 7, 2021
GitHub

**7.4.15 (Oct 7, 2021)** BUGFIXES: Pass socket_id to setAuth #121

v7.4.14
mkozjakmkozjak·4y ago·August 26, 2021
GitHub

**7.4.14 (Aug 26, 2021)** BUGFIXES: Fixes #105

v7.4.13
mkozjakmkozjak·5y ago·June 20, 2021
GitHub

📋 Changes

  • Cleanup package-lock file
  • Cleanup unit tests
  • Take care of security vulnerabilities
v7.4.12
mkozjakmkozjak·5y ago·May 18, 2021
GitHub

📋 Changes

  • Wrap login methods into try/catch
  • Use ws version 7.4.5
v7.4.10
mkozjakmkozjak·5y ago·April 1, 2021
GitHub

**7.4.10 (April 1, 2021)** BUGFIXES: Bump y18n dependency to fix security vulnerability (#100)

v7.4.9
mkozjakmkozjak·5y ago·March 8, 2021
GitHub

📋 Changes

  • Bump elliptic dependency to fix security vulnerability (#98)
v7.4.7
mkozjakmkozjak·5y ago·November 20, 2020
GitHub

7.4.7 (November 20, 2020) BUGFIXES: Server: Check if request data is null (#95)

v7.4.6
mkozjakmkozjak·5y ago·September 21, 2020
GitHub

📋 Changes

  • Client: Check if response violates spec (#93)
v7.4.5
mkozjakmkozjak·5y ago·September 16, 2020
GitHub

📋 Changes

  • Fixes an issue brought up with 30a2192
v7.4.4
mkozjakmkozjak·5y ago·September 16, 2020
GitHub

📋 Changes

  • Remove useless console.log
v7.4.3
mkozjakmkozjak·5y ago·September 15, 2020
GitHub

📋 Changes

  • Client should validate a response object (#91)
v7.4.2
mkozjakmkozjak·5y ago·September 7, 2020
GitHub

📋 Changes

  • Delay close event until socket is reset(#90)
  • Update package dependencies
v7.4.1
mkozjakmkozjak·5y ago·September 6, 2020
GitHub

📋 Changes

  • Server should check socket state before calling 'send' method(#44)
v7.4.0
mkozjakmkozjak·5y ago·September 6, 2020
GitHub

📋 Changes

  • Unset socket when closed to allow reconnects (#89)
v7.3.2
mkozjakmkozjak·5y ago·September 5, 2020
GitHub

📋 Changes

  • Use promise microtask instead of nexttick (#88)
v7.3.1
mkozjakmkozjak·5y ago·August 26, 2020
GitHub

📋 Changes

  • Removed assert-args because this lib is ts-native. Updated all outdated dependencies with minor code adaptation