Delegate
internal class Delegate : ConnectivityStateDelegate, ClientErrorDelegate
Undocumented
-
A simple struct representing a hardware interface.
See moreDeclaration
Swift
internal struct HardInterface
-
The
hardConnectivity
property exposes aCurrentValueSubject
-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 aCurrentValueSubject
-Publisher
which indicates the gRPC connectivity.Declaration
Swift
internal var softConnectivity: CurrentValueSubject<ConnectivityState, Never>
-
The
error
property exposes aCurrentValueSubject
-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
or192.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