diff --git a/CHANGELOG.md b/CHANGELOG.md index e3cadc6..f35c1e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.0.0-beta.2 + +**Bug fix:** +* [#373](https://github.com/rikulo/socket.io-client-dart/issues/373) hot restart error - Unhandled Exception: type 'Null' is not a subtype of type 'bool' +* ## 3.0.0-beta.1 **Bug fix:** diff --git a/lib/src/engine/socket.dart b/lib/src/engine/socket.dart index 1f03c3c..2e2a418 100644 --- a/lib/src/engine/socket.dart +++ b/lib/src/engine/socket.dart @@ -62,7 +62,7 @@ class Socket extends EventEmitter { opts['hostname'] = Uri.parse(opts['host']).host; } - secure = opts['secure'] /*?? (window.location.protocol == 'https:')*/; + secure = opts['secure'] ?? false /*?? (window.location.protocol == 'https:')*/; if (opts['hostname'] != null && !opts.containsKey('port')) { // if no port is specified manually, use the protocol default diff --git a/pubspec.yaml b/pubspec.yaml index 0b7f548..ed38b85 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: socket_io_client description: Dartlang port of socket.io-client for web, flutter, dartvm to use -version: 3.0.0-beta.1 +version: 3.0.0-beta.2 homepage: https://www.zkoss.org repository: https://github.com/rikulo/socket.io-client-dart issue_tracker: https://github.com/rikulo/socket.io-client-dart/issues