From bfaa97afdf4d914c19a3d86fce5e26923da669ea Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 6 Nov 2018 13:56:29 -0500 Subject: [PATCH] Update for websocket 2.0.0-alpha.5 --- CHANGELOG.md | 3 +++ lib/angel_hot.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 235fb178..28d6a100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.0.2 +* Fixed for compatibility with `package:angel_websocket@^2.0.0-alpha.5`. + # 2.0.1 * Add import of `package:angel_framework/http.dart` * https://github.com/angel-dart/hot/pull/7 diff --git a/lib/angel_hot.dart b/lib/angel_hot.dart index afa96996..1d7042be 100644 --- a/lib/angel_hot.dart +++ b/lib/angel_hot.dart @@ -304,7 +304,7 @@ class HotReloader { for (var client in ws.clients) { try { - await client.close(WebSocketStatus.goingAway); + await client.close(); } catch (e) { stderr.writeln( 'Couldn\'t close WebSocket from session #${client.request.session.id}: $e'); diff --git a/pubspec.yaml b/pubspec.yaml index c2d840d3..c58a28f4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: angel_hot description: Supports hot reloading/hot code push of Angel servers on file changes. -version: 2.0.1 +version: 2.0.2 author: Tobe O homepage: https://github.com/angel-dart/hot environment: