React Native WebSocket Component

JSON →
library 1.0.2 ·javascript maintenance
verified Jun 7, 2026

Provides a React Native component wrapper around the WebSocket API for managing real-time connections declaratively. Current stable version 1.0.2 (last release in 2019) receives minimal maintenance. Key differentiator: turns WebSocket lifecycle into a React component with props for events (onOpen, onMessage, onClose, onError) and a ref-based send() method. Alternatives like 'react-native-use-websocket' offer hooks-based usage and better maintenance. Requires polyfill for older React Native versions (0.60+) and does not support React Native Web or Expo managed workflow natively.