René's URL Explorer Experiment


Title: WebSockets: a server-side handle to a room, to broadcast to or close its connections from other server code · Issue #689 · voidzero-dev/void · GitHub

Open Graph Title: WebSockets: a server-side handle to a room, to broadcast to or close its connections from other server code · Issue #689 · voidzero-dev/void

X Title: WebSockets: a server-side handle to a room, to broadcast to or close its connections from other server code · Issue #689 · voidzero-dev/void

Description: Void 1.5.0, Cloudflare target, defineRoom in a *.ws.ts route. We need to reach a room from server code outside its own hooks. Our case is closing a user's open sockets when their Better Auth session is revoked: databaseHooks.session.dele...

Open Graph Description: Void 1.5.0, Cloudflare target, defineRoom in a *.ws.ts route. We need to reach a room from server code outside its own hooks. Our case is closing a user's open sockets when their Better Auth sessio...

X Description: Void 1.5.0, Cloudflare target, defineRoom in a *.ws.ts route. We need to reach a room from server code outside its own hooks. Our case is closing a user's open sockets when their Better Auth se...

Opengraph URL: https://github.com/voidzero-dev/void/issues/689

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"WebSockets: a server-side handle to a room, to broadcast to or close its connections from other server code","articleBody":"Void 1.5.0, Cloudflare target, `defineRoom` in a `*.ws.ts` route.\n\nWe need to reach a room from server code outside its own hooks. Our case is closing a user's open sockets when their Better Auth session is revoked: `databaseHooks.session.delete.after` fires on every revoke, sign-out and user deletion, but from there nothing in Void's API reaches the room's Durable Object. The docs only suggest re-checking records in `onMessage` and closing, which leaves an idle socket of a revoked session open until its next frame, and costs a database read per frame.\n\nThe only way we found is undocumented: the binding name Void generates (from `void.lock.json`), `idFromName('\u003cparam>=\u003cvalue>')`, and a request handled in `onRequest`. We do not want to depend on those internals.\n\nProposal: a server-side handle to a room instance, for example:\n\n```ts\nimport { getRoom } from 'void/ws';\n\nconst room = getRoom('/relay/:accountId', { params: { accountId } });\nawait room.broadcast(event);\nawait room.close({ code: 4001, reason: 'session revoked', filter: (connection) => connection.state.sessionId === id });\n```\n\nusable from route handlers, auth hooks, queues and cron jobs, and addressing the same instance a client's `connect()` would.\n","author":{"url":"https://github.com/IKatsuba","@type":"Person","name":"IKatsuba"},"datePublished":"2026-11-03T15:34:04Z","url":"https://github.com/voidzero-dev/void/issues/689"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ded69d7c-9423-85fc-afc6-28847a19986a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD7B6:23725B:1B29CAF:24F321C:6AFB8B36
html-safe-noncee7881f898afd4268a7bdc99c95125912b06720bab1d875f25a5017f0ed72eacb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0I2OjIzNzI1QjoxQjI5Q0FGOjI0RjMyMUM6NkFGQjhCMzYiLCJ2aXNpdG9yX2lkIjoiNDQwMDIyMTAwMzMwMTIyNzMxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace8399bf11e498e243e625862651a59dcbd345c9346e1d77d535db997b30d9274
hovercard-subject-tagissue:6185823215
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/689/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4aca0ed3766c1344b9d23ef0ac97ad34d240dc337f285575bf1ea25d5a5fe77f/voidzero-dev/void/issues/689
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4aca0ed3766c1344b9d23ef0ac97ad34d240dc337f285575bf1ea25d5a5fe77f/voidzero-dev/void/issues/689
og:image:altVoid 1.5.0, Cloudflare target, defineRoom in a *.ws.ts route. We need to reach a room from server code outside its own hooks. Our case is closing a user's open sockets when their Better Auth sessio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameIKatsuba
hostnamegithub.com
expected-hostnamegithub.com
None9694464143465782ecae2a97650b2a2b0708d5c31c74f41ee86da57e315e2735
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release05d967182208691fc7f2e6af52e82fa7fabf6bd5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/689#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F689
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F689
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/689
Reloadhttps://github.com/voidzero-dev/void/issues/689
Reloadhttps://github.com/voidzero-dev/void/issues/689
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests16 (16)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/689
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/689
#780https://github.com/voidzero-dev/void/pull/780
WebSockets: a server-side handle to a room, to broadcast to or close its connections from other server codehttps://github.com/voidzero-dev/void/issues/689#top
#780https://github.com/voidzero-dev/void/pull/780
https://github.com/0froq
https://github.com/IKatsuba
IKatsubahttps://github.com/IKatsuba
on Nov 3, 2026https://github.com/voidzero-dev/void/issues/689#issue-6185823215
https://github.com/0froq
0froqhttps://github.com/0froq
on Nov 10, 2026https://github.com/voidzero-dev/void/issues/689#issuecomment-6765248554
0froqhttps://github.com/0froq
on Nov 10, 2026https://github.com/voidzero-dev/void/issues/689#event-35670895242
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/689
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/689
0froqhttps://github.com/0froq
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.