WebSocketHandler constructor

const WebSocketHandler({
  1. required WebSocketOnConnected onConnected,
  2. Handler? fallback,
  3. WebSocketProtocolSelector? protocolSelector,
  4. CompressionOptions compression = CompressionOptions.compressionDefault,
})

Implementation

const WebSocketHandler({
  required this.onConnected,
  this.fallback,
  this.protocolSelector,
  this.compression = CompressionOptions.compressionDefault,
});