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

feat(workerd): use new transport #144

Merged
merged 6 commits into from
Nov 7, 2024
Merged

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Oct 27, 2024

No description provided.

Copy link
Owner Author

hi-ogawa commented Oct 27, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hi-ogawa and the rest of your teammates on Graphite Graphite

Comment on lines +61 to +65
invoke: async (payload) => {
// we still need to implement fetchModule on top of service binding
// since websocket and rpc have tighter payload size limit
// (for example, rpc 1MB is not enough for large pre-bundled deps with source map)
const response = await env.__viteInvoke.fetch(requestJson(payload));
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this is great, but it turns out we have payload size limit for rpc...

/home/hiroshi/code/personal/vite-environment-examples/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/wrangler/wrangler-dist/cli.js:29768
            throw a;
            ^

Error: Serialized RPC arguments or return values are limited to 1MiB, but the size of this value was: 3828118 bytes.
    at Object.respond (file:///home/hiroshi/code/personal/vite-environment-examples/node_modules/.pnpm/vite@file+vite-6.0.0-beta.3.tgz_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DBWyyc1z.js:53470:20)
    at file:///home/hiroshi/code/personal/vite-environment-examples/node_modules/.pnpm/vite@file+vite-6.0.0-beta.3.tgz_@[email protected][email protected]/node_modules/vite/dist/node/chunks/dep-DBWyyc1z.js:64571:16 {
  [cause]: undefined
}

@hi-ogawa hi-ogawa force-pushed the feat-workerd-transport branch from 2710281 to facbb6f Compare October 27, 2024 07:25
@hi-ogawa hi-ogawa force-pushed the feat-workerd-transport branch 4 times, most recently from a80bcc9 to 2ed493c Compare October 27, 2024 09:07
@hi-ogawa hi-ogawa marked this pull request as ready for review November 7, 2024 00:50
@hi-ogawa hi-ogawa merged commit 633b74d into feat-bridge-sse Nov 7, 2024
1 check passed
@hi-ogawa hi-ogawa deleted the feat-workerd-transport branch November 7, 2024 00:54
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.

1 participant