StreamConfig.reality constructor

StreamConfig.reality({
  1. TransportProtocol network = TransportProtocol.tcp,
  2. required REALITYConfig realitySettings,
  3. TCPConfig? rawSettings,
  4. TCPConfig? tcpSettings,
  5. SplitHTTPConfig? xhttpSettings,
  6. SplitHTTPConfig? splithttpSettings,
  7. GRPCConfig? grpcSettings,
  8. SocketConfig? sockopt,
})

Implementation

factory StreamConfig.reality({
  TransportProtocol network = TransportProtocol.tcp,
  required REALITYConfig realitySettings,
  TCPConfig? rawSettings,
  TCPConfig? tcpSettings,
  SplitHTTPConfig? xhttpSettings,
  SplitHTTPConfig? splithttpSettings,
  GRPCConfig? grpcSettings,
  SocketConfig? sockopt,
}) => StreamConfig(
  network: network,
  security: SecurityProtocol.reality,
  realitySettings: realitySettings,
  rawSettings: rawSettings,
  tcpSettings: tcpSettings,
  xhttpSettings: xhttpSettings,
  splithttpSettings: splithttpSettings,
  grpcSettings: grpcSettings,
  sockopt: sockopt,
);