Skip to content

Commit

Permalink
Fixed #373 hot restart error
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Mar 15, 2024
1 parent 577c55d commit b2f6d7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:**
Expand Down
2 changes: 1 addition & 1 deletion lib/src/engine/socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit b2f6d7c

Please sign in to comment.