Skip to content

Commit 6a5806d

Browse files
committed
1. Bump v3.0.0-beta.0
2. Updae version info.
1 parent 99e93dd commit 6a5806d

File tree

5 files changed

+6
-23
lines changed

5 files changed

+6
-23
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
**New Feature:**
44

5+
* Update codebase for compatibility with Socket.IO v4.7.4 and migrate to Dart version 3
56
* [#55](https://github.com/rikulo/socket.io-client-dart/issues/55) how to custom parser
67
* [#322](https://github.com/rikulo/socket.io-client-dart/pull/322) added emitWithAckAsync
78
* [#334](https://github.com/rikulo/socket.io-client-dart/pull/334) Socket.on... returns disposer function

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# socket.io-client-dart
22

3-
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
3+
Port of awesome JavaScript Node.js library - [Socket.io-client v2.* ~ v4.*](https://github.com/socketio/socket.io-client) - in Dart
44

55
### Version info:
66

77
| socket.io-client-dart | Socket.io Server
88
-------------------|----------------
99
`v0.9.*` ~ `v1.* ` | `v2.*`
10-
`v2.*` | `v3.*` & `v4.*`
10+
`v2.*` | `v3.*` ~ `v4.6.*`
11+
`v3.*` | `v4.7.* ~ v4.*`
1112

1213
## Usage
1314

@@ -107,15 +108,12 @@ These events can be listened on.
107108
const List EVENTS = [
108109
'connect',
109110
'connect_error',
110-
'connect_timeout',
111-
'connecting',
112111
'disconnect',
113112
'error',
114113
'reconnect',
115114
'reconnect_attempt',
116115
'reconnect_failed',
117116
'reconnect_error',
118-
'reconnecting',
119117
'ping',
120118
'pong'
121119
];

example/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,12 @@ These events can be listened on.
107107
const List EVENTS = [
108108
'connect',
109109
'connect_error',
110-
'connect_timeout',
111-
'connecting',
112110
'disconnect',
113111
'error',
114112
'reconnect',
115113
'reconnect_attempt',
116114
'reconnect_failed',
117115
'reconnect_error',
118-
'reconnecting',
119116
'ping',
120117
'pong'
121118
];

lib/src/darty.dart

-12
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ extension DartySocket on Socket {
1616
return on('connect_error', handler);
1717
}
1818

19-
Function() onConnectTimeout(EventHandler handler) {
20-
return on('connect_timeout', handler);
21-
}
22-
23-
Function() onConnecting(EventHandler handler) {
24-
return on('connecting', handler);
25-
}
26-
2719
Function() onDisconnect(EventHandler handler) {
2820
return on('disconnect', handler);
2921
}
@@ -48,10 +40,6 @@ extension DartySocket on Socket {
4840
return this.io.on('reconnect_error', handler);
4941
}
5042

51-
Function() onReconnecting(EventHandler handler) {
52-
return on('reconnecting', handler);
53-
}
54-
5543
Function() onPing(EventHandler handler) {
5644
return this.io.on('ping', handler);
5745
}

pubspec.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ environment:
1010

1111
dependencies:
1212
logging: '^1.2.0'
13-
socket_io_common: #'^3.0.0-beta.0'
14-
path: ../socket_io_common
15-
js: '^0.7.0'
13+
socket_io_common: '^3.0.0-beta.0'
14+
js: '^0.7.1'
1615

1716
dev_dependencies:
1817
lints: ^3.0.0

0 commit comments

Comments
 (0)