From 43c05e9743f454d393b857d60ac46a6335578cda Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 4 Nov 2024 23:18:24 -0800 Subject: [PATCH] realtime_client wasm support --- packages/realtime_client/lib/src/websocket/websocket.dart | 2 +- packages/realtime_client/pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/realtime_client/lib/src/websocket/websocket.dart b/packages/realtime_client/lib/src/websocket/websocket.dart index 9c6c5966..67bc281c 100644 --- a/packages/realtime_client/lib/src/websocket/websocket.dart +++ b/packages/realtime_client/lib/src/websocket/websocket.dart @@ -1,3 +1,3 @@ export 'websocket_stub.dart' if (dart.library.io) 'websocket_io.dart' - if (dart.library.html) 'websocket_web.dart'; + if (dart.library.js_interop) 'websocket_web.dart'; diff --git a/packages/realtime_client/pubspec.yaml b/packages/realtime_client/pubspec.yaml index 8c7ef8cd..69d72529 100644 --- a/packages/realtime_client/pubspec.yaml +++ b/packages/realtime_client/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: http: '>=0.13.0 <2.0.0' logging: ^1.2.0 meta: ^1.7.0 - web_socket_channel: '>=2.3.0 <4.0.0' + web_socket_channel: '>=3.0.1 <4.0.0' dev_dependencies: lints: ^3.0.0