grpc-dart icon indicating copy to clipboard operation
grpc-dart copied to clipboard

Error connecting: Unsupported operation: Socket constructor (WASM)

Open flrnsbt opened this issue 1 year ago • 1 comments

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

flrnsbt avatar Jul 18 '24 06:07 flrnsbt

Possibly a duplicate of #715?

mosuem avatar Jul 18 '24 06:07 mosuem