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 1
1
/// If you change this file, you should apply the same changes to the 'parse_websocket_io.dart' file
2
2
library ;
3
3
4
- import 'dart:html ' as html ;
4
+ import 'package:web/web.dart ' as web ;
5
5
6
6
import 'package:web_socket_channel/html.dart' ;
7
7
import 'package:web_socket_channel/web_socket_channel.dart' ;
@@ -14,10 +14,10 @@ class WebSocket {
14
14
static const int closing = 2 ;
15
15
static const int closed = 3 ;
16
16
17
- final html .WebSocket _webSocket;
17
+ final web .WebSocket _webSocket;
18
18
19
19
static Future <WebSocket > connect (String liveQueryURL) async {
20
- final html .WebSocket webSocket = html .WebSocket (liveQueryURL);
20
+ final web .WebSocket webSocket = web .WebSocket (liveQueryURL);
21
21
await webSocket.onOpen.first;
22
22
return WebSocket ._(webSocket);
23
23
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ dependencies:
40
40
xxtea : ^2.1.0
41
41
collection : ^1.19.1
42
42
cross_file : ^0.3.4+2
43
+ web : ^1.1.1
43
44
44
45
dev_dependencies :
45
46
lints : ^5.1.1
You can’t perform that action at this time.
0 commit comments