{"library":"react-websocket","type":"library","category":null,"description":"React WebSocket is a component-based library for integrating WebSocket connections into React applications. Version 2.1.0 is the latest stable release, with infrequent updates and dependence on community contributions. It provides a simple <Websocket> component with props for URL, message handling, and connection events, and includes built-in reconnection logic. Unlike more complex alternatives, this library offers a minimal, declarative approach but is less actively maintained and lacks advanced features like request/response patterns or subscription management. It requires React 0.14.5+.","language":"javascript","status":"maintenance","version":"2.1.0","tags":["javascript","reactjs","websocket","react","connection"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install react-websocket","imports":["import Websocket from 'react-websocket'","const Websocket = require('react-websocket').default","import Websocket from 'react-websocket'"]},{"cmd":"yarn add react-websocket","imports":[]},{"cmd":"pnpm add react-websocket","imports":[]}],"homepage":"https://github.com/mehmetkose/react-websocket","github":"ssh://git@github.com/mehmetkose/react-websocket","docs":null,"changelog":null,"pypi":null,"npm":"react-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}