mfeckie/phoenix_wings

Does not support flutter web.

Opened this issue · 4 comments

WebSocket connection to ws://x.x.x.x/socket/websocket?vsn=2.0.0&user=lobby failed!: Unsupported operation: Platform._version

Do you have any ideas about what would be needed to support flutter web? I'm not currently doing any active Flutter work, so am not up to date with what's going on in the ecosystem

i think this issue related to #42375, #39998 in flutter repo and there's no solution yet.

flutter/flutter#42375
flutter/flutter#39998

excuse me but why don't you use

export 'src/phoenix_connection.dart'
    if (dart.library.html) 'src/phoenix_html_connection.dart'
    if (dart.library.io) 'src/phoenix_io_connection.dart';

in lib/phoenix_wings.dartfile or something like that ?

I'm sorry but my skills are not sufficient to send a PR...

@mfeckie did you want to check out #34?