Framework-agnostic WebSocket library for real-time audio streaming with MessagePack and Opus encoding. Version 1.0.5, active development. Supports auto-reconnection, heartbeat, message queuing, resumption from last position after disconnect. Key differentiators: framework-agnostic core with dedicated React hooks and VS Code extension adapters, opinionated audio pipeline with MessagePack decoding and Opus playback, TypeScript-first with full type definitions. Alternative to lower-level libraries like `ws` or `socket.io` for audio streaming use cases. Peer dependency on React >=18.0.0 for the React integration. Release cadence irregular as of initial release.
npm install stormee-websocketNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a StormeeService instance, initialize, connect, and start an audio streaming session with configuration for WebSocket, audio settings, and event handlers.
Use '@stormee-websocket/library/core' for core service, '@stormee-websocket/library/react' for React hook, '@stormee-websocket/library/vscode' for VS Code adapter.
Use import syntax or configure your bundler to handle ESM packages. If using Node.js, set 'type': 'module' in package.json or use dynamic import.
Ensure your project has React 18 or later installed. Run 'npm install react@^18.0.0'.
Import from a specific sub-path: e.g., import { StormeeService } from '@stormee-websocket/library/core'.Ensure you installed the package correctly (npm install @stormee-websocket/library) and check that your bundler supports the 'exports' field in package.json.
Use named import: import { StormeeService } from '@stormee-websocket/library/core'.Install React: npm install react@^18.0.0. Note: React is only required if you use the 'react' sub-path.