ActionCableLink constructor

ActionCableLink(
  1. String url, {
  2. String channelName = 'GraphqlChannel',
  3. String authHeaderKey = 'Authorization',
  4. String action = 'execute',
  5. Map<String, String> defaultHeaders = const {},
  6. GetAuthToken? getAuthTokenFunc,
  7. Duration retryDuration = const Duration(seconds: 2),
})

Implementation

ActionCableLink(
  this.url, {
  this.channelName = 'GraphqlChannel',
  this.authHeaderKey = 'Authorization',
  this.action = 'execute',
  this.defaultHeaders = const {},
  this.getAuthTokenFunc,
  this.retryDuration = const Duration(seconds: 2),
});