Skip to content

Commit

Permalink
* [socket.io-client-dart#72](rikulo/socket.io-client-dart#72) Can't s…
Browse files Browse the repository at this point in the history
…end Iterable as one packet
  • Loading branch information
jumperchen committed May 5, 2020
1 parent 16de37a commit 276734c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.9.2

**Bug fix:**

* [socket.io-client-dart#72](https://github.com/rikulo/socket.io-client-dart/issues/72) Can't send Iterable as one packet
## 0.9.1

**Bug fix:**
Expand Down
2 changes: 1 addition & 1 deletion lib/src/parser/binary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Binary {
static final String KEY_NUM = "num";

static Map deconstructPacket(Map packet) {
List<int> buffers = [];
List buffers = [];

packet['data'] = _deconstructPacket(packet['data'], buffers);
packet['attachments'] = buffers.length;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/parser/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class Encoder {
var buffers = deconstruction['buffers'];

// add packet info to beginning of data list
callback([pack]..addAll(buffers)); // write all the buffers
callback(<dynamic>[pack]..addAll(buffers)); // write all the buffers
};
//
// binary.removeBlobs(obj, writeEncoding);
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_common
description: Socket.io common parser library.
version: 0.9.1
version: 0.9.2
author: jumperchen <[email protected]>
homepage: https://www.zkoss.org
repository: https://github.com/rikulo/socket_io_common
Expand Down

0 comments on commit 276734c

Please sign in to comment.