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: