File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11## 2.3.2-wip
22
3+ - Add support for providing custom message when terminating a connection.
4+
35## 2.3.1
46
57- Require Dart 3.2
Original file line number Diff line number Diff line change @@ -288,8 +288,8 @@ abstract class Connection {
288288 }
289289
290290 /// Terminates this connection forcefully.
291- Future <void > terminate ([int ? errorCode]) {
292- return _terminate (errorCode ?? ErrorCode .NO_ERROR );
291+ Future <void > terminate ([int ? errorCode, String ? message ]) {
292+ return _terminate (errorCode ?? ErrorCode .NO_ERROR , message : message );
293293 }
294294
295295 void _activeStateHandler (bool isActive) =>
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ abstract class TransportConnection {
7373 Future finish ();
7474
7575 /// Terminates this connection forcefully.
76- Future terminate ([int ? errorCode]);
76+ Future terminate ([int ? errorCode, String ? message ]);
7777}
7878
7979abstract class ClientTransportConnection extends TransportConnection {
You can’t perform that action at this time.
0 commit comments