# PartyKit PartySocket (Client API)

**Canonical:** https://apis.io/apis/partykit/partysocket/  
**Provider:** PartyKit — https://apis.io/providers/partykit/  
**Base URL:** https://docs.partykit.io/reference/partysocket-api/  
**Documentation:** https://docs.partykit.io/reference/partysocket-api/

PartyKit PartySocket (Client API) is one of 4 APIs that [PartyKit](https://apis.io/providers/partykit/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include Client SDK, WebSockets, Browser, and Cross-Runtime. The published artifact set on APIs.io includes API documentation.

Browser and runtime client library for connecting to a PartyKit server over WebSockets. Wraps the standard WebSocket API with reconnection, buffering, and resilience. Runs in Web, ServiceWorker, Node.js, React Native, Cloudflare Workers, Deno, and Bun.

## Machine-readable artifacts (2)

- **Documentation** — https://docs.partykit.io/reference/partysocket-api/
- **SDKs** — https://www.npmjs.com/package/partysocket

## Other PartyKit APIs (3)

- [PartyKit Party.Server (Server API)](https://apis.io/apis/partykit/party-server/)
- [Y-PartyKit (Yjs Integration)](https://apis.io/apis/partykit/y-partykit/)
- [PartyKit Deployed Party (HTTP / WebSocket)](https://apis.io/apis/partykit/deployed-party-http/)

## Tags

Client SDK, WebSockets, Browser, Cross-Runtime

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/partykit/partysocket/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/partykit/.
