Skip to content

Commit b3aa9bb

Browse files
committed
some formatting after merge
1 parent 4cda9fe commit b3aa9bb

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.1.3
2+
- Added `pingInterval` to `copyWith` for `StompConfig`. Thanks @AndruhovSasha
3+
14
## 2.1.2
25
- Fixed oversight in move to `package:web` which made the package not work with wasm.
36

lib/src/stomp_config.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ class StompConfig {
7474
final StompDebugCallback onDebugMessage;
7575

7676
/// The transport url of the WebSocket to connect to
77-
String get connectUrl => _connectUrl ??= useSockJS ? SockJsUtils().generateTransportUrl(url) : url;
77+
String get connectUrl =>
78+
_connectUrl ??= useSockJS ? SockJsUtils().generateTransportUrl(url) : url;
7879

7980
String? _connectUrl;
8081

@@ -83,10 +84,10 @@ class StompConfig {
8384
this.reconnectDelay = const Duration(seconds: 5),
8485
this.heartbeatIncoming = const Duration(seconds: 5),
8586
this.heartbeatOutgoing = const Duration(seconds: 5),
87+
this.pingInterval,
8688
this.connectionTimeout = Duration.zero,
8789
this.stompConnectHeaders,
8890
this.webSocketConnectHeaders,
89-
this.pingInterval,
9091
this.beforeConnect = _noOpFuture,
9192
this.onConnect = _noOp,
9293
this.onStompError = _noOp,
@@ -126,8 +127,8 @@ class StompConfig {
126127
Duration? reconnectDelay,
127128
Duration? heartbeatIncoming,
128129
Duration? heartbeatOutgoing,
129-
Duration? connectionTimeout,
130130
Duration? pingInterval,
131+
Duration? connectionTimeout,
131132
bool? useSockJS,
132133
Map<String, String>? stompConnectHeaders,
133134
Map<String, dynamic>? webSocketConnectHeaders,
@@ -147,10 +148,11 @@ class StompConfig {
147148
reconnectDelay: reconnectDelay ?? this.reconnectDelay,
148149
heartbeatIncoming: heartbeatIncoming ?? this.heartbeatIncoming,
149150
heartbeatOutgoing: heartbeatOutgoing ?? this.heartbeatOutgoing,
150-
connectionTimeout: connectionTimeout ?? this.connectionTimeout,
151151
pingInterval: pingInterval ?? this.pingInterval,
152+
connectionTimeout: connectionTimeout ?? this.connectionTimeout,
152153
useSockJS: useSockJS ?? this.useSockJS,
153-
webSocketConnectHeaders: webSocketConnectHeaders ?? this.webSocketConnectHeaders,
154+
webSocketConnectHeaders:
155+
webSocketConnectHeaders ?? this.webSocketConnectHeaders,
154156
stompConnectHeaders: stompConnectHeaders ?? this.stompConnectHeaders,
155157
beforeConnect: beforeConnect ?? this.beforeConnect,
156158
onConnect: onConnect ?? this.onConnect,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stomp_dart_client
22
homepage: https://github.com/blackhorse-one/stomp_dart
3-
version: 2.1.2
3+
version: 2.1.3
44
description: Dart STOMP client for easy messaging interoperability. Build with flutter in mind, but should work for every dart application.
55
environment:
66
sdk: ">=2.12.0 <4.0.0"

0 commit comments

Comments
 (0)