TSClientDelegate
@protocol TSClientDelegate <NSObject>
A protocol to be implemented by a TSClient’s delegate.
-
Callback method to report received control timestamps
Declaration
Objective-C
- (void)didReceiveNewControlTimetamp:(ControlTimestamp *)ctimetamp;
Swift
func didReceiveNewControlTimetamp(_ ctimetamp: ControlTimestamp!)
Parameters
ctimetamp
a ControlTimestamp object (de-serialised from received JSON message)
-
Callback method to report a broken TS protocol connection
Declaration
Objective-C
- (void)tsClient:(TSClient *)ts_client StateChanged:(TSClientState)state;
Swift
func tsClient(_ ts_client: TSClient!, stateChanged state: TSClientState)
Parameters
tsEndpointURL
the URL of TS protocol server endpoint to which this client is connected to