Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT LAND partykit: adds more hibernatable socket methods #500

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

threepointone
Copy link
Contributor

This adds the missing methods that we can use to respond to messages when objects are hibernated without waking up the object. Namely, setWebSocketAutoResponse, getWebSocketAutoResponse, and getWebSocketAutoResponseTimestamp. Details in type signature, more info here: https://developers.cloudflare.com/durable-objects/api/websockets/#setwebsocketautoresponse

This adds the missing methods that we can use to respond to messages when objects are hibernated without waking up the object. Namely, setWebSocketAutoResponse, getWebSocketAutoResponse, and getWebSocketAutoResponseTimestamp. Details in type signature, more info here: https://developers.cloudflare.com/durable-objects/api/websockets/#setwebsocketautoresponse
@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2023

🦋 Changeset detected

Latest commit: 7394468

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
partykit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
partykit-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2023 0:22am
partykit-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2023 0:22am
partykit-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2023 0:22am

@jevakallio
Copy link
Contributor

Dropping a quick note based on IRL chat, we should add some default partykit metadata on the response, so that we can use this as a room-level meta storage for room ids, connection counts, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants