google / eDistantObject

eDistantObject (eDO) - Remote invocation library for iOS
Apache License 2.0
174 stars 36 forks source link

Add callback to EDOHostService for device connection failure. #267

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Add callback to EDOHostService for device connection failure.

The callback is passed in during the construction of the service. Right now, it will be called exactly once throughout the service's lifecycle, when the attempt of connection fails, including both initial connection and reconnection.

The additional test case provides an example of how this can be used.