File tree 4 files changed +20
-1
lines changed
4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.9.11
2
+
3
+ ** New Feature:**
4
+
5
+ * [ #108 ] ( https://github.com/rikulo/socket.io-client-dart/issues/108 ) Need dispose method for clearing resources
6
+
1
7
## 0.9.10+2
2
8
3
9
* Fix dart analyzer warning for formatting issues.
Original file line number Diff line number Diff line change @@ -152,6 +152,9 @@ void main() {
152
152
}
153
153
```
154
154
155
+ ### Memory leak issues in iOS when closing socket.
156
+ * Refer to https://github.com/rikulo/socket.io-client-dart/issues/108 issue.
157
+ Please use ` socket.dispose() ` instead of ` socket.close() ` or ` socket.disconnect() ` to solve the memory leak issue on iOS.
155
158
156
159
## Notes to Contributors
157
160
Original file line number Diff line number Diff line change @@ -407,6 +407,16 @@ class Socket extends EventEmitter {
407
407
return this ;
408
408
}
409
409
410
+ /// Disposes the socket manually which will destroy, close, disconnect the socket connection
411
+ /// and clear all the event listeners. Unlike [close] or [disconnect] which won't clear
412
+ /// all the event listeners
413
+ ///
414
+ /// @since 0.9.11
415
+ void dispose () {
416
+ disconnect ();
417
+ clearListeners ();
418
+ }
419
+
410
420
///
411
421
/// Sets the compress flag.
412
422
///
Original file line number Diff line number Diff line change 1
1
name : socket_io_client
2
2
description : Dartlang port of socket.io-client for web, flutter, dartvm to use
3
- version : 0.9.10+2
3
+ version : 0.9.11
4
4
homepage : https://www.zkoss.org
5
5
repository : https://github.com/rikulo/socket.io-client-dart
6
6
issue_tracker : https://github.com/rikulo/socket.io-client-dart/issues
You can’t perform that action at this time.
0 commit comments