File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
web_socket_conformance_tests/lib/src Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ class ConnectionException extends WebSocketException {
5757/// > can be used to adapt a [CupertinoWebSocket] into a
5858/// > [`WebSocketChannel`] (https://pub.dev/documentation/web_socket_channel/latest/web_socket_channel/WebSocketChannel-class.html).
5959class CupertinoWebSocket implements WebSocket {
60- final closeCompleter = Completer <void >();
61-
6260 /// Create a new WebSocket connection using the
6361 /// [NSURLSessionWebSocketTask API] (https://developer.apple.com/documentation/foundation/nsurlsessionwebsockettask).
6462 ///
@@ -108,7 +106,6 @@ class CupertinoWebSocket implements WebSocket {
108106 print ('onWebSocketTaskClosed' );
109107 assert (readyCompleter.isCompleted);
110108 webSocket._connectionClosed (closeCode, reason);
111- webSocket.closeCompleter.complete ();
112109 },
113110 onComplete: (session, task, error) {
114111 print (
@@ -275,7 +272,6 @@ class CupertinoWebSocket implements WebSocket {
275272 } else {
276273 _task.cancel ();
277274 }
278- await closeCompleter.future;
279275 }
280276 }
281277
Original file line number Diff line number Diff line change 22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5- import 'dart:io' ;
65import 'dart:typed_data' ;
76
87import 'package:async/async.dart' ;
You can’t perform that action at this time.
0 commit comments