From 9d20e917a161b520025a6224171417bcfe30197b Mon Sep 17 00:00:00 2001 From: "zengyun261@qq.com" Date: Fri, 18 Mar 2016 15:41:39 +0800 Subject: [PATCH] protocols --- lib/io.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/io.dart b/lib/io.dart index 8c225be..0d5a2c0 100644 --- a/lib/io.dart +++ b/lib/io.dart @@ -51,7 +51,7 @@ class IOWebSocketChannel extends StreamChannelMixin var channel; var sinkCompleter = new WebSocketSinkCompleter(); var stream = StreamCompleter.fromFuture( - WebSocket.connect(url.toString(), headers: headers).then((webSocket) { + WebSocket.connect(url.toString(), protocols: protocols, headers: headers).then((webSocket) { webSocket.pingInterval = pingInterval; channel._webSocket = webSocket; sinkCompleter.setDestinationSink(new _IOWebSocketSink(webSocket));