connect method

Future<User> connect(
  1. String userId, {
  2. String? nickname,
  3. String? accessToken,
  4. String? apiHost,
  5. String? wsHost,
})

Connects to Sendbird server with given parameters. If previously connected and try to connect with different userId then everything will be reset before it attempts to connect. Provide accessToken can be used if you generated the token from platform api

Implementation

Future<User> connect(
  String userId, {
  String? nickname,
  String? accessToken,
  String? apiHost,
  String? wsHost,
}) async {
  return _int.connect(
    userId: userId,
    nickname: nickname,
    accessToken: accessToken,
    apiHost: apiHost,
    wsHost: wsHost,
  );
}