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

Runtime APIs: MessageChannel #3273

Open
phase opened this issue Dec 26, 2024 · 1 comment
Open

Runtime APIs: MessageChannel #3273

phase opened this issue Dec 26, 2024 · 1 comment
Labels
feature request Request for Workers team to add a feature

Comments

@phase
Copy link

phase commented Dec 26, 2024

The MessageChannel API is available on node but not CF Workers. This is causing an issue during the deployment of sites using React 19 + Astro + Workers, see facebook/react#31827 and withastro/astro#12824. The usage of this API may be a bug for this use case (meaning the solution there may be to stop using MessageChannel), but workerd may want to support it anyway.

I made a repository with steps to reproduce the crash mentioned in those issues here: https://github.com/phase/test-astro-react19-cf-workers

@jasnell jasnell changed the title 🐛 Bug Report — Runtime APIs: MessageChannel Runtime APIs: MessageChannel Dec 28, 2024
@jasnell jasnell added the feature request Request for Workers team to add a feature label Dec 28, 2024
@jasnell
Copy link
Member

jasnell commented Dec 28, 2024

Relabeling this as a feature request. The fact that we currently do not support MessageChannel is currently intentional as there aren't really any usable use cases for it in the runtime currently. It is something we can revisit but it likely won't be soon. To help with that, it would be helpful to have a better idea of how MessageChannel is being used in this particular case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for Workers team to add a feature
Projects
None yet
Development

No branches or pull requests

2 participants