connect static method
Implementation
static Future<void> connect(String token, Function(int? code, String? userId)? finished) async {
Map resultMap = await _channel.invokeMethod(RCMethodKey.Connect, token);
int? code = resultMap["code"];
String? userId = resultMap["userId"];
if (finished != null) {
finished(code, userId);
}
}