File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11/// If you change this file, you should apply the same changes to the 'parse_websocket_io.dart' file
22library ;
33
4- import 'dart:html ' as html ;
4+ import 'package:web/web.dart ' as web ;
55
66import 'package:web_socket_channel/html.dart' ;
77import 'package:web_socket_channel/web_socket_channel.dart' ;
@@ -14,10 +14,10 @@ class WebSocket {
1414 static const int closing = 2 ;
1515 static const int closed = 3 ;
1616
17- final html .WebSocket _webSocket;
17+ final web .WebSocket _webSocket;
1818
1919 static Future <WebSocket > connect (String liveQueryURL) async {
20- final html .WebSocket webSocket = html .WebSocket (liveQueryURL);
20+ final web .WebSocket webSocket = web .WebSocket (liveQueryURL);
2121 await webSocket.onOpen.first;
2222 return WebSocket ._(webSocket);
2323 }
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ dependencies:
4040 xxtea : ^2.1.0
4141 collection : ^1.19.1
4242 cross_file : ^0.3.4+2
43+ web : ^1.1.1
4344
4445dev_dependencies :
4546 lints : ^5.1.1
You can’t perform that action at this time.
0 commit comments