WebSocket wrapper for redux-cluster enabling real-time Redux store synchronization across Node.js servers and clients (including browser) using native WebSocket, not Socket.IO. Current version 2.0.116, actively maintained. Key differentiators: lightweight native WS protocol, built-in authentication (login/password), IP banning/connection limits, dual ESM/CJS packaging. Requires ws@^8.19.0 as peer dependency. Full TypeScript support since v2.0.
npm install redux-cluster-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a WebSocket server and client using redux-cluster-ws with a simple counter reducer, demonstrates real-time state sync.
Update server and client to use WebSocket URLs (ws:// instead of http://). Replace Socket.IO options with WebSocket config.
Install and import from 'redux-cluster' for the store class, and only import createWSServer/createWSClient from 'redux-cluster-ws'.
Update Node.js to v16+ and ensure ws@^8.19.0 is installed.
Use import { createWSServer, createWSClient } from 'redux-cluster-ws' instead of import reduxClusterWs from 'redux-cluster-ws'.npm install ws@^8.19.0
Change to: import { createWSServer, createWSClient } from 'redux-cluster-ws'Use: import { ReduxCluster } from 'redux-cluster'