connect method Null safety
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,
);
}