Skip to content

Commit

Permalink
IO Utils: Upgrade WebSocket now has useStandardWebSocket.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Endfinger committed Apr 22, 2016
1 parent 48ab199 commit 88c7b77
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,14 @@ class HttpHelper {
}

static Future<WebSocket> upgradeToWebSocket(HttpRequest request, [
protocolSelector(List<String> protocols)
protocolSelector(List<String> protocols),
bool useStandardWebSocket
]) {
if (enableStandardWebSocket) {
if (useStandardWebSocket == null) {
useStandardWebSocket = enableStandardWebSocket;
}

if (useStandardWebSocket) {
return WebSocketTransformer.upgrade(request, protocolSelector: protocolSelector);
}

Expand Down

0 comments on commit 88c7b77

Please sign in to comment.