dart-lang / web_socket_channel

StreamChannel wrappers for WebSockets.
https://pub.dev/packages/web_socket_channel
BSD 3-Clause "New" or "Revised" License
419 stars 109 forks source link

Error: The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'. #316

Closed betimer closed 9 months ago

betimer commented 9 months ago

Version: 2.4.2

If downgrade to version 2.4.0, it is working well.


The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'.
 - 'WebSocket' is from 'package:web/src/dom/websockets.dart' ('/C:/Users/betim/AppData/Local/Pub/Cache/hosted/pub.dev/web-0.3.0/lib/src/dom/websockets.dart').
 - ```
paddymahadeva commented 9 months ago

we are facing the same issue, but we are not using web_socket directly. So no option to even downgrade as well

Error: The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'.

mogol commented 9 months ago

@paddymahadeva you can add this to your pubspec.yaml

dependency_overrides: 
  web_socket_channel: 2.4.0
devoncarew commented 9 months ago

Thanks for the report! De-duping this with https://github.com/dart-lang/web_socket_channel/issues/318.