Skip to content

Commit 7d3d213

Browse files
committed
Fix #150 Problem with setQuery in socket io version 3.0
1 parent 42d0479 commit 7d3d213

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.0.0-beta.3
2+
3+
**Bug fix:**
4+
5+
* [#150](https://github.com/rikulo/socket.io-client-dart/issues/150) Problem with setQuery in socket io version 3.0
6+
17
## 2.0.0-beta.2
28

39
**Bug fix:**

lib/src/socket.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,11 @@ class Socket extends EventEmitter {
189189

190190
// write connect packet if necessary
191191
// if ('/' != nsp) {
192-
if (query?.isNotEmpty == true) {
193-
packet({'type': CONNECT, 'query': query});
194-
} else {
192+
// if (query?.isNotEmpty == true) {
193+
// packet({'type': CONNECT, 'query': query});
194+
// } else {
195195
packet({'type': CONNECT});
196-
}
196+
// }
197197
// }
198198
}
199199

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: socket_io_client
22
description: Dartlang port of socket.io-client for web, flutter, dartvm to use
3-
version: 2.0.0-beta.2
3+
version: 2.0.0-beta.3
44
homepage: https://www.zkoss.org
55
repository: https://github.com/rikulo/socket.io-client-dart
66
issue_tracker: https://github.com/rikulo/socket.io-client-dart/issues

0 commit comments

Comments
 (0)