/// This abstract method will be called when the connet() is succeed.
Future<void> onConnected();
+
/// This abstract method will be called when the connection with the stub is disconnected.
Future<void> onDisconnected();
+
/// This abstract method will be called when connect() is failed.
- Future<void> onRejected(int error);
+ Future<void> onRejected(String errorMessage);
@override
Future<void> onConnectedEvent() async {
}
@override
- Future<void> onRejectedEvent(int error) async {
- await onRejected(error);
+ Future<void> onRejectedEvent(String errorMessage) async {
+ await onRejected(errorMessage);
}
@override
await super.connect();
}
- /// Connects with the stub application synchronously.
- @override
- Future<void> connectSync() async {
- Log.info(_logTag, 'connectSync()');
- await super.connectSync();
- }
-
/// Dispose registered delegate interface.
void disposeCallback(String tag) {
Log.info(_logTag, 'disposeCallback($tag)');