File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
pkgs/web_socket_channel/lib Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 5
5
import 'dart:async' ;
6
6
import 'dart:io' show HttpClient, WebSocket;
7
7
8
- import 'package:web_socket/io_web_socket.dart' as io_web_socket ;
8
+ import 'package:web_socket/io_web_socket.dart' show IOWebSocket ;
9
9
10
10
import 'adapter_web_socket_channel.dart' ;
11
11
import 'src/channel.dart' ;
@@ -58,7 +58,6 @@ class IOWebSocketChannel extends AdapterWebSocketChannel {
58
58
/// Creates a channel wrapping [webSocket] .
59
59
IOWebSocketChannel (FutureOr <WebSocket > webSocket)
60
60
: 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));
64
63
}
You can’t perform that action at this time.
0 commit comments