StompServiceOptions.clientOnly constructor

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

Creates options with server disabled

Implementation

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