Skip to content

Commit

Permalink
1. Bump v3.0.0-beta.0
Browse files Browse the repository at this point in the history
2. Updae version info.
  • Loading branch information
jumperchen committed Feb 18, 2024
1 parent 99e93dd commit 6a5806d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

**New Feature:**

* Update codebase for compatibility with Socket.IO v4.7.4 and migrate to Dart version 3
* [#55](https://github.com/rikulo/socket.io-client-dart/issues/55) how to custom parser
* [#322](https://github.com/rikulo/socket.io-client-dart/pull/322) added emitWithAckAsync
* [#334](https://github.com/rikulo/socket.io-client-dart/pull/334) Socket.on... returns disposer function
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# socket.io-client-dart

Port of awesome JavaScript Node.js library - [Socket.io-client v2.0.1~v3.0.3](https://github.com/socketio/socket.io-client) - in Dart
Port of awesome JavaScript Node.js library - [Socket.io-client v2.* ~ v4.*](https://github.com/socketio/socket.io-client) - in Dart

### Version info:

| socket.io-client-dart | Socket.io Server
-------------------|----------------
`v0.9.*` ~ `v1.* ` | `v2.*`
`v2.*` | `v3.*` & `v4.*`
`v2.*` | `v3.*` ~ `v4.6.*`
`v3.*` | `v4.7.* ~ v4.*`

## Usage

Expand Down Expand Up @@ -107,15 +108,12 @@ These events can be listened on.
const List EVENTS = [
'connect',
'connect_error',
'connect_timeout',
'connecting',
'disconnect',
'error',
'reconnect',
'reconnect_attempt',
'reconnect_failed',
'reconnect_error',
'reconnecting',
'ping',
'pong'
];
Expand Down
3 changes: 0 additions & 3 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,12 @@ These events can be listened on.
const List EVENTS = [
'connect',
'connect_error',
'connect_timeout',
'connecting',
'disconnect',
'error',
'reconnect',
'reconnect_attempt',
'reconnect_failed',
'reconnect_error',
'reconnecting',
'ping',
'pong'
];
Expand Down
12 changes: 0 additions & 12 deletions lib/src/darty.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ extension DartySocket on Socket {
return on('connect_error', handler);
}

Function() onConnectTimeout(EventHandler handler) {
return on('connect_timeout', handler);
}

Function() onConnecting(EventHandler handler) {
return on('connecting', handler);
}

Function() onDisconnect(EventHandler handler) {
return on('disconnect', handler);
}
Expand All @@ -48,10 +40,6 @@ extension DartySocket on Socket {
return this.io.on('reconnect_error', handler);
}

Function() onReconnecting(EventHandler handler) {
return on('reconnecting', handler);
}

Function() onPing(EventHandler handler) {
return this.io.on('ping', handler);
}
Expand Down
5 changes: 2 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ environment:

dependencies:
logging: '^1.2.0'
socket_io_common: #'^3.0.0-beta.0'
path: ../socket_io_common
js: '^0.7.0'
socket_io_common: '^3.0.0-beta.0'
js: '^0.7.1'

dev_dependencies:
lints: ^3.0.0
Expand Down

0 comments on commit 6a5806d

Please sign in to comment.