Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created April 23, 2021 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/593621b8113181f73362444ba90d6820 to your computer and use it in GitHub Desktop.
Save sendbird-community/593621b8113181f73362444ba90d6820 to your computer and use it in GitHub Desktop.
Flutter | Connect
Future<User> connect(String appId, String userId) async {
try {
final sendbird = SendbirdSdk(appId: appId);
final user = await sendbird.connect(userId);
return user;
} catch (e) {
print('connect: ERROR: $e');
throw e;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment