WebSocket implementation for Fortune.js that provides real-time data synchronization using a MessagePack-based wire protocol. Current stable version is 1.0.4. The package has low release cadence (last release in 2019) and is primarily meant for Fortune.js users needing WebSocket support. Compared to generic WebSocket libraries, it integrates tightly with Fortune's data layer, offering server-side listener and automatic client syncing.
npm install fortune-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a Fortune WebSocket server and client, including auto-syncing client.
Pass an object `{ host, port }` as first argument to `request`.Use `const fortuneWS = require('fortune-ws')` and then `fortuneWS(instance, ...)` for server.Consider using alternative real-time data libraries or upgrade to a maintained fork.
Do not use `new`; call `fortuneWS(instance, change, options, callback)` directly.
Run `npm install fortune-ws --save` and ensure `require('fortune-ws')` is used.