createUhstSocket method

  1. @override
UhstSocket createUhstSocket({
  1. required UhstRelayClient relayClient,
  2. required bool debug,
  3. ClientSocketParams? clientParams,
  4. HostSocketParams? hostParams,
})
override

If clientParams where provided then it will return Client Socket If hostParams where provided then it will return Host Socket

Only one - clientParams or hostParams can be provided in same time

Implementation

@override
UhstSocket createUhstSocket({
  required UhstRelayClient relayClient,
  required bool debug,
  ClientSocketParams? clientParams,
  HostSocketParams? hostParams,
}) =>
    RelaySocket.create(
      relayClient: relayClient,
      clientParams: clientParams,
      hostParams: hostParams,
      debug: debug,
    );