Delegate

internal class Delegate : ConnectivityStateDelegate, ClientErrorDelegate

Undocumented

  • A simple struct representing a hardware interface.

    See more

    Declaration

    Swift

    internal struct HardInterface
  • The hardConnectivity property exposes a CurrentValueSubject-Publisher which indicates if a network interface is connected and whith which ip address.

    Declaration

    Swift

    internal var hardConnectivity: CurrentValueSubject<ET.Delegate.HardInterface, Never>
  • The softConnectivity property exposes a CurrentValueSubject-Publisher which indicates the gRPC connectivity.

    Declaration

    Swift

    internal var softConnectivity: CurrentValueSubject<ConnectivityState, Never>
  • The error property exposes a CurrentValueSubject-Publisher which indicates if the gRPC library has encountered an error.

    Declaration

    Swift

    internal var error: CurrentValueSubject<ET.GRPCErrorProvider?, Never>
  • Initialize hardware connectivity polling mechanism by checking if an interface with ip address 10.0.0.1 or 192.168.137.1 has connected.

    Declaration

    Swift

    internal init()
  • Implementation of ConnectivityStateDelegate.

    Declaration

    Swift

    func connectivityStateDidChange(from oldState: ConnectivityState, to newState: ConnectivityState)
  • Implementation of ConnectivityStateDelegate.

    Declaration

    Swift

    func didCatchError(_ error: Error, logger: Logger, file: StaticString, line: Int)
  • Simple cleanup invalidates timer.

    Declaration

    Swift

    deinit