Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Jan 16, 2020
1 parent 71428f5 commit 16de37a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## 0.9.1

**Bug fix:**

* [socket.io-client-dart#51](https://github.com/rikulo/socket.io-client-dart/issues/51) Issues with ArrayBuffer in Flutter Web
2 changes: 1 addition & 1 deletion lib/src/engine/parser/parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class PacketParser {
}

// Binary data
if (binaryType == 'arraybuffer') {
if (binaryType == 'arraybuffer' || data is ByteBuffer) {
// wrap Buffer/ArrayBuffer data into an Uint8Array
var intArray = (data as ByteBuffer).asUint8List();
type = intArray[0];
Expand Down
4 changes: 3 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: socket_io_common
description: Socket.io common parser library.
version: 0.9.0+5
version: 0.9.1
author: jumperchen <[email protected]>
homepage: https://www.zkoss.org
repository: https://github.com/rikulo/socket_io_common
issue_tracker: https://github.com/rikulo/socket_io_common/issues

environment:
sdk: '>=2.0.0 <3.0.0'
Expand Down

0 comments on commit 16de37a

Please sign in to comment.