WebSocketClient constructor
WebSocketClient(
- String url, {
- Iterable<
String> ? protocols, - Map<
String, dynamic> ? headers, - CompressionOptions compression = CompressionOptions.compressionDefault,
- HttpClient? customClient,
- Duration? pingInterval,
- String eventNameUpdate = "update",
- String eventNameConnection = "connection",
- 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;
}