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

Error connecting: Unsupported operation: Socket constructor (WASM) #725

Open
flrnsbt opened this issue Jul 18, 2024 · 1 comment
Open

Error connecting: Unsupported operation: Socket constructor (WASM) #725

flrnsbt opened this issue Jul 18, 2024 · 1 comment

Comments

@flrnsbt
Copy link

flrnsbt commented Jul 18, 2024

While running a Flutter Web app build in WASM, I get this runtime error: 'Error connecting: Unsupported operation: Socket constructor'. Working fine in javascript, I'm using gRPC web of course.

4.0.0

Repro steps

  1. Create a new Flutter web project that uses gRPC web
  2. Build it in wasm and launch the app-
    Expected result: gRPC calls to work properly

Actual result: It seems that the wrong Socket constructor is used, instead of using a web compatible one, when we build in WASM

Details

Error connecting: Unsupported operation: Socket constructor

@mosuem
Copy link
Contributor

mosuem commented Jul 18, 2024

Possibly a duplicate of #715?

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

No branches or pull requests

2 participants