Commit cbe785f
committed
feat: add connection state recovery and flexible auth
- Implement Socket.IO v4 connection state recovery
* Track PID and offset for session restoration
* Add isRecovered() and getLastOffset() methods
* Replay missed events after reconnect
- Change auth from Map to JSONObject for flexibility
- Upgrade test server from Socket.IO v3.0.4 to v4.8.1
* Fix tests for v4 offset parameter
* Fix namespace emission bugs
BREAKING CHANGE: auth is now JSONObject instead of Map<String,String>1 parent eb438de commit cbe785f
File tree
12 files changed
+591
-413
lines changed- src
- main/java/io/socket/client
- test
- java/io/socket
- client
- parser
- resources
12 files changed
+591
-413
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 105 | | |
120 | 106 | | |
121 | 107 | | |
| |||
207 | 193 | | |
208 | 194 | | |
209 | 195 | | |
210 | | - | |
| 196 | + | |
211 | 197 | | |
212 | 198 | | |
213 | 199 | | |
| |||
223 | 209 | | |
224 | 210 | | |
225 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
226 | 250 | | |
227 | 251 | | |
228 | 252 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
565 | | - | |
| 566 | + | |
566 | 567 | | |
567 | 568 | | |
568 | 569 | | |
| |||
0 commit comments