/plushcap/analysis/partykit/posts-partyserver-api

Party.Server — New API for a programmable primitive

What's this blog post about?

The new Party.Server API simplifies developing real-time, collaborative, multiplayer applications using PartyKit. Parties are globally distributed, stateful, programmable, and on-demand web servers powered by Cloudflare Durable Objects. The API includes classes for server instances, lifecycle methods such as onStart, onConnect, onClose, onError, and onMessage, request handlers like onRequest and static onBeforeRequest, onBeforeConnect, and onFetch methods. Additionally, the API supports hibernation for cost-effective scaling and better connection management with tagged connections. The naming has been updated to clarify the distinction between "parties" and "rooms".

Company
PartyKit

Date published
Sept. 12, 2023

Author(s)
Jani Eväkallio

Word count
1831

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.