Skip to content

Commit

Permalink
Avoid importing io_web_socket namespace (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan authored Apr 9, 2024
1 parent ce69d31 commit b612fc2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'dart:async';
import 'dart:io' show HttpClient, WebSocket;

import 'package:web_socket/io_web_socket.dart' as io_web_socket;
import 'package:web_socket/io_web_socket.dart' show IOWebSocket;

import 'adapter_web_socket_channel.dart';
import 'src/channel.dart';
Expand Down Expand Up @@ -58,7 +58,6 @@ class IOWebSocketChannel extends AdapterWebSocketChannel {
/// Creates a channel wrapping [webSocket].
IOWebSocketChannel(FutureOr<WebSocket> webSocket)
: super(webSocket is Future<WebSocket>
? webSocket.then(io_web_socket.IOWebSocket.fromWebSocket)
as FutureOr<io_web_socket.IOWebSocket>
: io_web_socket.IOWebSocket.fromWebSocket(webSocket));
? webSocket.then(IOWebSocket.fromWebSocket) as FutureOr<IOWebSocket>
: IOWebSocket.fromWebSocket(webSocket));
}

0 comments on commit b612fc2

Please sign in to comment.