{"library":"react-native-use-websocket","type":"library","category":null,"description":"A React Native hook for robust WebSocket integrations. Current version 0.2.6, maintained as a fork of react-use-websocket adapted for React Native. Provides auto-reconnect, message queueing, shared WebSocket support across components, and TypeScript types. Differentiator: handles mobile-specific scenarios like network transitions and backgrounding. Release cadence is low; last update October 2021.","language":"javascript","status":"active","version":"0.2.6","tags":["javascript","react-native","ios","android","websocket","socket.io","hook","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install react-native-use-websocket","imports":["import useWebSocket from 'react-native-use-websocket'","import useWebSocket, { ReadyState } from 'react-native-use-websocket'","import useWebSocket from 'react-native-use-websocket';\nconst { sendMessage } = useWebSocket(url);"]},{"cmd":"yarn add react-native-use-websocket","imports":[]},{"cmd":"pnpm add react-native-use-websocket","imports":[]}],"homepage":"https://github.com/Sumit1993/react-native-use-websocket#readme","github":"https://github.com/Sumit1993/react-native-use-websocket","docs":null,"changelog":null,"pypi":null,"npm":"react-native-use-websocket","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}