File tree 5 files changed +6
-23
lines changed
5 files changed +6
-23
lines changed Original file line number Diff line number Diff line change 2
2
3
3
** New Feature:**
4
4
5
+ * Update codebase for compatibility with Socket.IO v4.7.4 and migrate to Dart version 3
5
6
* [ #55 ] ( https://github.com/rikulo/socket.io-client-dart/issues/55 ) how to custom parser
6
7
* [ #322 ] ( https://github.com/rikulo/socket.io-client-dart/pull/322 ) added emitWithAckAsync
7
8
* [ #334 ] ( https://github.com/rikulo/socket.io-client-dart/pull/334 ) Socket.on... returns disposer function
Original file line number Diff line number Diff line change 1
1
# socket.io-client-dart
2
2
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
4
4
5
5
### Version info:
6
6
7
7
| socket.io-client-dart | Socket.io Server
8
8
-------------------|----------------
9
9
` v0.9.* ` ~ ` v1.* ` | ` v2.* `
10
- ` v2.* ` | ` v3.* ` & ` v4.* `
10
+ ` v2.* ` | ` v3.* ` ~ ` v4.6.* `
11
+ ` v3.* ` | ` v4.7.* ~ v4.* `
11
12
12
13
## Usage
13
14
@@ -107,15 +108,12 @@ These events can be listened on.
107
108
const List EVENTS = [
108
109
'connect',
109
110
'connect_error',
110
- 'connect_timeout',
111
- 'connecting',
112
111
'disconnect',
113
112
'error',
114
113
'reconnect',
115
114
'reconnect_attempt',
116
115
'reconnect_failed',
117
116
'reconnect_error',
118
- 'reconnecting',
119
117
'ping',
120
118
'pong'
121
119
];
Original file line number Diff line number Diff line change @@ -107,15 +107,12 @@ These events can be listened on.
107
107
const List EVENTS = [
108
108
'connect',
109
109
'connect_error',
110
- 'connect_timeout',
111
- 'connecting',
112
110
'disconnect',
113
111
'error',
114
112
'reconnect',
115
113
'reconnect_attempt',
116
114
'reconnect_failed',
117
115
'reconnect_error',
118
- 'reconnecting',
119
116
'ping',
120
117
'pong'
121
118
];
Original file line number Diff line number Diff line change @@ -16,14 +16,6 @@ extension DartySocket on Socket {
16
16
return on ('connect_error' , handler);
17
17
}
18
18
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
-
27
19
Function () onDisconnect (EventHandler handler) {
28
20
return on ('disconnect' , handler);
29
21
}
@@ -48,10 +40,6 @@ extension DartySocket on Socket {
48
40
return this .io.on ('reconnect_error' , handler);
49
41
}
50
42
51
- Function () onReconnecting (EventHandler handler) {
52
- return on ('reconnecting' , handler);
53
- }
54
-
55
43
Function () onPing (EventHandler handler) {
56
44
return this .io.on ('ping' , handler);
57
45
}
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ environment:
10
10
11
11
dependencies :
12
12
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'
16
15
17
16
dev_dependencies :
18
17
lints : ^3.0.0
You can’t perform that action at this time.
0 commit comments