onConnectionRecovered method

void onConnectionRecovered(
  1. Event event,
  2. StreamChannelListController controller
)

Function which gets called for the event EventType.connectionRecovered.

This event is fired when the client web-socket connection recovers.

By default, this refreshes the whole channel list.

Implementation

void onConnectionRecovered(
  Event event,
  StreamChannelListController controller,
) {
  controller.refresh();
}