addConnectStateObserver method

void addConnectStateObserver(
  1. SSEConnectObserver observer
)

Add observer listen connection change More detail state refer ConnectState

Implementation

void addConnectStateObserver(SSEConnectObserver observer) {
  _connectManager.addConnectStateObserver(observer);
}