grpc-dart
grpc-dart copied to clipboard
Error connecting: Unsupported operation: Socket constructor (WASM)
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
- Create a new Flutter web project that uses gRPC web
- 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
Possibly a duplicate of #715?