A React higher-order component library (v0.3.41) that connects components to MCS (Media Cloud Service) via WebSocket, built on recompose and W3CWebSocket. It handles WebSocket lifecycle (connect, reconnect, send, receive) declaratively. Stable but low activity; last release July 2019. Differentiator: opinionated HOC pattern vs. raw WebSocket or hooks. Not actively maintained; known footgun: requires specific prop structure from parent.
npm install mcs-lite-connectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use connectSocket HOC to connect a React component to MCS via WebSocket with send, reconnect, and close detection.
Always provide all three functions.
Ensure URL uses ws:// or wss:// protocol.
Log the received datapoint to inspect its structure.
Consider migrating to modern WebSocket hooks like useWebSocket.
Change to import { connectSocket } from 'mcs-lite-connect';Check that MCS server is running and URL is correct.