Skip to content

Conversation

@phala
Copy link

@phala phala commented Mar 13, 2025

This PR introduces two main improvements:

  1. Server ID Randomization:

    • Added functionality to randomize the server ID parameter on initial connections and reconnection attempts
    • Implemented a configurable server ID generator for SockJS connections
    • Improved connection retry logic with randomized server IDs to enhance reliability
  2. Build System Modernization:

    • Migrated from NWB to Vite for a more modern build system
    • Updated package.json to use standard exports syntax for better compatibility
    • Added proper ESM/CJS/UMD output formats with sourcemaps
    • Removed unnecessary build artifacts and simplified project structure

Additionally, various code improvements were made:

  • Initialized handlers object to prevent undefined errors
  • Replaced map() with forEach() for side effects
  • Improved code formatting and consistency
  • Fixed parameter usage in several methods

@phala phala requested a review from aleciafb March 13, 2025 12:58
@phala phala marked this pull request as ready for review March 25, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants