connect static method

Future<Null> connect()

will establish the Web-socket connections manually

While calling the init() function on the app startup, need to inform the SDK that you will be managing the web socket connect from autoEstablishSocketConnection.

Once the connection is established, you will start receiving all the real-time events for the logged in user

Implementation

static Future<Null> connect() async {
  try {
    await channel.invokeMethod('connect', {});
  } on PlatformException catch (_) {
  } catch (e) {
    throw e;
  }
}