Chromium Code Reviews| Index: lib/src/web_socket_handler.dart |
| diff --git a/lib/src/web_socket_handler.dart b/lib/src/web_socket_handler.dart |
| index c0e2c6fb0f38e2f4ff8ee1d5d54e1aa6fcb7538a..9abf93f6129bd9f38819f6f7bb3effe03d1543b5 100644 |
| --- a/lib/src/web_socket_handler.dart |
| +++ b/lib/src/web_socket_handler.dart |
| @@ -4,7 +4,7 @@ |
| import 'dart:convert'; |
| -import 'package:http_parser/http_parser.dart'; |
| +import 'package:web_socket_channel/web_socket_channel.dart'; |
|
kevmoo
2016/03/03 00:50:50
sorting?
nweiz
2016/03/03 20:08:22
Done.
|
| import 'package:shelf/shelf.dart'; |
| /// A class that exposes a handler for upgrading WebSocket requests. |
| @@ -70,7 +70,7 @@ class WebSocketHandler { |
| "HTTP/1.1 101 Switching Protocols\r\n" |
| "Upgrade: websocket\r\n" |
| "Connection: Upgrade\r\n" |
| - "Sec-WebSocket-Accept: ${CompatibleWebSocket.signKey(key)}\r\n"); |
| + "Sec-WebSocket-Accept: ${WebSocketChannel.signKey(key)}\r\n"); |
| if (protocol != null) sink.add("Sec-WebSocket-Protocol: $protocol\r\n"); |
| sink.add("\r\n"); |