SubscribeConnection

virtual PSubscription IController::SubscribeConnection(ConnectionHandler handler) = 0

Subscribes a callback to be executed when the connection to this controller is restored.

Parameters

handler – Function to be called when connection is restored.

Returns

PSubscription – An ISubscription for the callback.

Throws
Remarks

It is not executed when the connection to a sub-controller of this controller is restored.