StompServiceOptions.serverEnabled constructor

const StompServiceOptions.serverEnabled({
  1. String? serverName,
  2. Duration timeout = StompConstants.defaultTimeout,
  3. bool enableAutoReconnect = false,
  4. Duration reconnectInterval = const Duration(seconds: 5),
  5. int maxReconnectAttempts = 3,
})

Creates options with server enabled

Implementation

const StompServiceOptions.serverEnabled({
  this.serverName,
  this.timeout = StompConstants.defaultTimeout,
  this.enableAutoReconnect = false,
  this.reconnectInterval = const Duration(seconds: 5),
  this.maxReconnectAttempts = 3,
}) : enableServer = true;