Conditional platform imports
Open
package:web_socket_channel
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 419
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 8
Description
The current package doesn't work with Flutter Web and I get the following error :
```shell
transitive libraries have sdk dependencies that not supported on this platform:
web_socket_channel|lib/io.dart
```
Conditional imports (like implemented in the [http's client](https://github.com/dart-lang/http/blob/7774121a406fedb0502fce7cc224476c1ac78469/lib/src/client.dart#L12)) would fix the error I guess.
Contributor guide
Assessment
This issue has not been assessed yet.