onConnectionFailed property

Stream get onConnectionFailed

A stream that emits events when the chat service connection fails.

This stream listens for events indicating that the chat service has failed to establish a connection. Each event contains information about the connection failure. Use this stream to update your UI or perform actions upon connection failure.

Usage example:

Mirrorfly.onConnectionFailed.listen((failureEventData) {
  // Handle the event when the platform connection fails
  print("Platform connection failed: $failureEventData");
});

Implementation

static Stream<dynamic> get onConnectionFailed =>
    FlyChatFlutterPlatform.instance.onConnectionFailed;