mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
add task manager
This commit is contained in:
6
lib/utils/websocket_web.dart
Normal file
6
lib/utils/websocket_web.dart
Normal file
@@ -0,0 +1,6 @@
|
||||
import 'package:web_socket_channel/html.dart';
|
||||
import 'package:web_socket_channel/web_socket_channel.dart';
|
||||
|
||||
Future<WebSocketChannel> connectWebSocket(Uri uri) async {
|
||||
return HtmlWebSocketChannel.connect(uri, binaryType: BinaryType.list);
|
||||
}
|
||||
Reference in New Issue
Block a user