PartySocket

JSON →
library 1.1.19 ·javascript
verified Jun 7, 2026

A drop-in replacement for WebSocket that automatically reconnects, buffers messages while disconnected, and handles connection timeouts. Version 1.1.19 is stable with regular updates. Supports multiple environments (Web, Node.js, React Native, Cloudflare Workers, Deno, Bun) and can be used independently of PartyKit. Key differentiators: built-in message buffering, dynamic URL/protocol providers, and zero dependencies.