StompConfig constructor

const StompConfig({
  1. required String url,
  2. Duration reconnectDelay = const Duration(seconds: 5),
  3. Duration heartbeatIncoming = const Duration(seconds: 5),
  4. Duration heartbeatOutgoing = const Duration(seconds: 5),
  5. Duration connectionTimeout = const Duration(),
  6. Map<String, String>? stompConnectHeaders,
  7. Map<String, dynamic>? webSocketConnectHeaders,
  8. StompBeforeConnectCallback beforeConnect = _noOpFuture,
  9. StompFrameCallback onConnect = _noOp,
  10. StompFrameCallback onStompError = _noOp,
  11. StompFrameCallback onDisconnect = _noOp,
  12. StompFrameCallback onUnhandledFrame = _noOp,
  13. StompFrameCallback onUnhandledMessage = _noOp,
  14. StompFrameCallback onUnhandledReceipt = _noOp,
  15. StompWebSocketErrorCallback onWebSocketError = _noOp,
  16. StompWebSocketDoneCallback onWebSocketDone = _noOp,
  17. StompDebugCallback onDebugMessage = _noOp,
  18. bool useSockJS = false,
})

Implementation

const StompConfig({
  required this.url,
  this.reconnectDelay = const Duration(seconds: 5),
  this.heartbeatIncoming = const Duration(seconds: 5),
  this.heartbeatOutgoing = const Duration(seconds: 5),
  this.connectionTimeout = const Duration(),
  this.stompConnectHeaders,
  this.webSocketConnectHeaders,
  this.beforeConnect = _noOpFuture,
  this.onConnect = _noOp,
  this.onStompError = _noOp,
  this.onDisconnect = _noOp,
  this.onUnhandledFrame = _noOp,
  this.onUnhandledMessage = _noOp,
  this.onUnhandledReceipt = _noOp,
  this.onWebSocketError = _noOp,
  this.onWebSocketDone = _noOp,
  this.onDebugMessage = _noOp,
  this.useSockJS = false,
});