Skip to content

Commit

Permalink
some formatting after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
KammererTob committed Feb 7, 2025
1 parent 4cda9fe commit b3aa9bb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.1.3
- Added `pingInterval` to `copyWith` for `StompConfig`. Thanks @AndruhovSasha

## 2.1.2
- Fixed oversight in move to `package:web` which made the package not work with wasm.

Expand Down
12 changes: 7 additions & 5 deletions lib/src/stomp_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class StompConfig {
final StompDebugCallback onDebugMessage;

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

String? _connectUrl;

Expand All @@ -83,10 +84,10 @@ class StompConfig {
this.reconnectDelay = const Duration(seconds: 5),
this.heartbeatIncoming = const Duration(seconds: 5),
this.heartbeatOutgoing = const Duration(seconds: 5),
this.pingInterval,
this.connectionTimeout = Duration.zero,
this.stompConnectHeaders,
this.webSocketConnectHeaders,
this.pingInterval,
this.beforeConnect = _noOpFuture,
this.onConnect = _noOp,
this.onStompError = _noOp,
Expand Down Expand Up @@ -126,8 +127,8 @@ class StompConfig {
Duration? reconnectDelay,
Duration? heartbeatIncoming,
Duration? heartbeatOutgoing,
Duration? connectionTimeout,
Duration? pingInterval,
Duration? connectionTimeout,
bool? useSockJS,
Map<String, String>? stompConnectHeaders,
Map<String, dynamic>? webSocketConnectHeaders,
Expand All @@ -147,10 +148,11 @@ class StompConfig {
reconnectDelay: reconnectDelay ?? this.reconnectDelay,
heartbeatIncoming: heartbeatIncoming ?? this.heartbeatIncoming,
heartbeatOutgoing: heartbeatOutgoing ?? this.heartbeatOutgoing,
connectionTimeout: connectionTimeout ?? this.connectionTimeout,
pingInterval: pingInterval ?? this.pingInterval,
connectionTimeout: connectionTimeout ?? this.connectionTimeout,
useSockJS: useSockJS ?? this.useSockJS,
webSocketConnectHeaders: webSocketConnectHeaders ?? this.webSocketConnectHeaders,
webSocketConnectHeaders:
webSocketConnectHeaders ?? this.webSocketConnectHeaders,
stompConnectHeaders: stompConnectHeaders ?? this.stompConnectHeaders,
beforeConnect: beforeConnect ?? this.beforeConnect,
onConnect: onConnect ?? this.onConnect,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stomp_dart_client
homepage: https://github.com/blackhorse-one/stomp_dart
version: 2.1.2
version: 2.1.3
description: Dart STOMP client for easy messaging interoperability. Build with flutter in mind, but should work for every dart application.
environment:
sdk: ">=2.12.0 <4.0.0"
Expand Down

0 comments on commit b3aa9bb

Please sign in to comment.