Skip to content

Commit

Permalink
Fix #33 socket.on('receiveMessage',(data)=>print("data")) called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Feb 19, 2020
1 parent ca3ccea commit 33d48d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.9.8

**Bug fix:**

* [#33](https://github.com/rikulo/socket.io-client-dart/issues/33) socket.on('receiveMessage',(data)=>print("data")) called twice


## 0.9.7+2

**New Feature:**
Expand Down
2 changes: 1 addition & 1 deletion lib/src/socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Socket extends EventEmitter {
///
/// @api private
void subEvents() {
if (subs?.isEmpty == true) return;
if (subs?.isNotEmpty == true) return;

var io = this.io;
subs = [
Expand Down

0 comments on commit 33d48d4

Please sign in to comment.