WebSocketClient constructor

WebSocketClient(
  1. String url, {
  2. Iterable<String>? protocols,
  3. Map<String, dynamic>? headers,
  4. CompressionOptions compression = CompressionOptions.compressionDefault,
  5. HttpClient? customClient,
  6. Duration? pingInterval,
  7. String eventNameUpdate = "update",
  8. String eventNameConnection = "connection",
  9. String eventNameInvoke = "invoke",
})

Implementation

WebSocketClient(
  this.url, {
  this.protocols,
  this.headers,
  this.compression = CompressionOptions.compressionDefault,
  this.customClient,
  this.pingInterval,
  String eventNameUpdate = "update",
  String eventNameConnection = "connection",
  String eventNameInvoke = "invoke",
}) {
  event_name_update = eventNameUpdate;
  event_name_connection = eventNameConnection;
  event_name_invoke = eventNameInvoke;
}