Skip to content

Commit d0940e6

Browse files
authored
Avoid importing io_web_socket namespace (dart-archive/web_socket_channel#343)
1 parent 816e120 commit d0940e6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkgs/web_socket_channel/lib/io.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'dart:async';
66
import 'dart:io' show HttpClient, WebSocket;
77

8-
import 'package:web_socket/io_web_socket.dart' as io_web_socket;
8+
import 'package:web_socket/io_web_socket.dart' show IOWebSocket;
99

1010
import 'adapter_web_socket_channel.dart';
1111
import 'src/channel.dart';
@@ -58,7 +58,6 @@ class IOWebSocketChannel extends AdapterWebSocketChannel {
5858
/// Creates a channel wrapping [webSocket].
5959
IOWebSocketChannel(FutureOr<WebSocket> webSocket)
6060
: super(webSocket is Future<WebSocket>
61-
? webSocket.then(io_web_socket.IOWebSocket.fromWebSocket)
62-
as FutureOr<io_web_socket.IOWebSocket>
63-
: io_web_socket.IOWebSocket.fromWebSocket(webSocket));
61+
? webSocket.then(IOWebSocket.fromWebSocket) as FutureOr<IOWebSocket>
62+
: IOWebSocket.fromWebSocket(webSocket));
6463
}

0 commit comments

Comments
 (0)