Open Event SDK for Node.js (v1.0.1) enables WebSocket-based event subscription for open platforms, primarily targeting WPS KSO ecosystem. It supports automatic reconnection with exponential backoff, KSO-1 signature authentication, and two event handling modes: single handler and dispatcher with per-event-code registration. Ships TypeScript definitions with typed event handlers for common events. Requires Node.js >=18. Compared to alternatives, it provides a typed, configurable WebSocket client with built-in reconnection and signature auth.
npm install open-event-sdkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a WebSocket client with a dispatcher that handles typed and custom events, then starts listening.
Use 'import' syntax and ensure Node.js >=18 or use dynamic import().
Check documentation for list of supported onV7XXX methods, or use registerFunc for others.
Use registerFunc for new code; onV7XXX may be removed in future.
Ensure import path is exact: 'open-event-sdk/event/model' (case-sensitive). For TypeScript, set moduleResolution to 'node' or 'node16'.
Switch to 'import' syntax or use dynamic import(). Ensure package.json has 'type': 'module'.
Import { Dispatcher } from 'open-event-sdk' and instantiate with new Dispatcher() before calling methods.No dependency data recorded yet.