From b612fc2caa9f4c3c8947b4ffbb274bce33c54a04 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Tue, 9 Apr 2024 16:38:59 -0700 Subject: [PATCH] Avoid importing io_web_socket namespace (#343) --- lib/io.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/io.dart b/lib/io.dart index ec69b22..ff10d1a 100644 --- a/lib/io.dart +++ b/lib/io.dart @@ -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'; @@ -58,7 +58,6 @@ class IOWebSocketChannel extends AdapterWebSocketChannel { /// Creates a channel wrapping [webSocket]. IOWebSocketChannel(FutureOr webSocket) : super(webSocket is Future - ? webSocket.then(io_web_socket.IOWebSocket.fromWebSocket) - as FutureOr - : io_web_socket.IOWebSocket.fromWebSocket(webSocket)); + ? webSocket.then(IOWebSocket.fromWebSocket) as FutureOr + : IOWebSocket.fromWebSocket(webSocket)); }