| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ec3c23f6-4d68-54b4-3551-ff1510a846cf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A1F0:34DD9:A8447D:ECC69A:6B043210 |
| html-safe-nonce | 0f3323efcab94a3eecdc6971b33fdf4c7291b3003819656c09d230ab6fca8c2f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUYwOjM0REQ5OkE4NDQ3RDpFQ0M2OUE6NkIwNDMyMTAiLCJ2aXNpdG9yX2lkIjoiMjA1NTkwMzM5Nzg3NzY1ODEyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3b6ba1e17c6ce2dcdf493e185694024b47851d2677dfb17c190f320fd92469c |
| hovercard-subject-tag | pull_request:4718077236 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/websocket/574/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/d8bc18acd720fb7a569bcc41c74d012e308e1af223276cc24e47efc772685e75/coder/websocket/pull/574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8bc18acd720fb7a569bcc41c74d012e308e1af223276cc24e47efc772685e75/coder/websocket/pull/574 |
| og:image:alt | Closes #546
Adds PreparedMessage and Conn.WritePrepared for writing the same message to many connections, such as when broadcasting. On connections that compress without context takeover, the messa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kvizyx |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/websocket git https://github.com/coder/websocket.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 144590177 |
| octolytics-dimension-repository_nwo | coder/websocket |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 144590177 |
| octolytics-dimension-repository_network_root_nwo | coder/websocket |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/coder/websocket/pull/574#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fwebsocket%2Fpull%2F574 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fwebsocket%2Fpull%2F574 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fwebsocket |
| Reload | https://github.com/coder/websocket/pull/574 |
| Reload | https://github.com/coder/websocket/pull/574 |
| Reload | https://github.com/coder/websocket/pull/574 |
| coder | https://github.com/coder |
| websocket | https://github.com/coder/websocket |
| Code | https://github.com/coder/websocket |
| Issues59 (59) | https://github.com/coder/websocket/issues |
| Pull requests27 (27) | https://github.com/coder/websocket/pulls |
| Actions | https://github.com/coder/websocket/actions |
| Security and quality | https://github.com/coder/websocket/security |
| Insights | https://github.com/coder/websocket/insights |
| https://github.com/coder/websocket |
| kvizyx | https://github.com/kvizyx |
| coder:master | https://github.com/coder/websocket/tree/master |
| kvizyx:kvizyx/prepared-message | https://github.com/kvizyx/websocket/tree/kvizyx/prepared-message |
| Conversation | https://github.com/coder/websocket/pull/574 |
| Commits6 (6) | https://github.com/coder/websocket/pull/574/commits |
| Checks | https://github.com/coder/websocket/pull/574/checks |
| Files changed | https://github.com/coder/websocket/pull/574/files |
| feat: add prepared write | https://github.com/coder/websocket/pull/574#top |
| kvizyx | https://github.com/kvizyx |
| coder:master | https://github.com/coder/websocket/tree/master |
| kvizyx:kvizyx/prepared-message | https://github.com/kvizyx/websocket/tree/kvizyx/prepared-message |
|
| https://github.com/kvizyx |
| kvizyx | https://github.com/kvizyx |
| Oct 2, 2026 | https://github.com/coder/websocket/pull/574#issue-5679368592 |
| #546 | https://github.com/coder/websocket/issues/546 |
| uWebSockets | https://github.com/uNetworking/uWebSockets |
| Please reload this page | https://github.com/coder/websocket/pull/574 |
| kvizyx | https://github.com/kvizyx |
| October 2, 2026 03:55 | https://github.com/coder/websocket/pull/574#commits-pushed-b76622a |
|
| https://github.com/kvizyx |
| feat: add PreparedMessage for writing a message to many connections | https://github.com/coder/websocket/pull/574/commits/b76622afeeaaad8ac57451bd6364f259ac40050f |
| b76622a | https://github.com/coder/websocket/pull/574/commits/b76622afeeaaad8ac57451bd6364f259ac40050f |
|
| https://github.com/kvizyx |
| docs: add prepared message to highlights | https://github.com/coder/websocket/pull/574/commits/2d37f1cf0310e288736674bbc25a32109984dd30 |
| 2d37f1c | https://github.com/coder/websocket/pull/574/commits/2d37f1cf0310e288736674bbc25a32109984dd30 |
|
| https://github.com/kvizyx |
| feat: skip compression for messages it does not make smaller | https://github.com/coder/websocket/pull/574/commits/1ac0d68db14c7c6d879f779140e7d02a69d9cea9 |
| 1ac0d68 | https://github.com/coder/websocket/pull/574/commits/1ac0d68db14c7c6d879f779140e7d02a69d9cea9 |
|
| https://github.com/kvizyx |
| test: cover prepared write in fuzz and Wasm tests | https://github.com/coder/websocket/pull/574/commits/385007ab415c9bd1ce719dbbd9f09a721d00f63b |
| 385007a | https://github.com/coder/websocket/pull/574/commits/385007ab415c9bd1ce719dbbd9f09a721d00f63b |
| https://github.com/kvizyx |
| kvizyx | https://github.com/kvizyx |
| force-pushed | https://github.com/coder/websocket/compare/9d1be01b6a61423677786c07228cfaa0dab3eb1c..385007ab415c9bd1ce719dbbd9f09a721d00f63b |
| 9d1be01 | https://github.com/coder/websocket/commit/9d1be01b6a61423677786c07228cfaa0dab3eb1c |
| 385007a | https://github.com/coder/websocket/commit/385007ab415c9bd1ce719dbbd9f09a721d00f63b |
|
Compare
| https://github.com/coder/websocket/compare/9d1be01b6a61423677786c07228cfaa0dab3eb1c..385007ab415c9bd1ce719dbbd9f09a721d00f63b |
| October 2, 2026 21:17 | https://github.com/coder/websocket/pull/574#event-32366295832 |
| kvizyx | https://github.com/kvizyx |
| October 3, 2026 00:29 | https://github.com/coder/websocket/pull/574#commits-pushed-6e4f008 |
|
| https://github.com/kvizyx |
| test: clarify compressed expectation in prepared write test | https://github.com/coder/websocket/pull/574/commits/6e4f00815ed7251c0b2fdf99299e27da13b735d6 |
| 6e4f008 | https://github.com/coder/websocket/pull/574/commits/6e4f00815ed7251c0b2fdf99299e27da13b735d6 |
|
| https://github.com/kvizyx |
| fix(examples): reject invalid UTF-8 in broadcast example | https://github.com/coder/websocket/pull/574/commits/9bffa3c9a98ef8e5280b44b6a50571af1c471a45 |
| 9bffa3c | https://github.com/coder/websocket/pull/574/commits/9bffa3c9a98ef8e5280b44b6a50571af1c471a45 |
| https://github.co/hiddenchars |
| https://github.com/coder/websocket/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fwebsocket%2Fpull%2F574 |
| Please reload this page | https://github.com/coder/websocket/pull/574 |
|
Are there any plans to implement prepared writes?
| https://github.com/coder/websocket/issues/546 |
| Please reload this page | https://github.com/coder/websocket/pull/574 |
|
| https://github.com/kvizyx |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |