connect method

Future<void> connect(
  1. int userId,
  2. String password
)

Implementation

Future<void> connect(int userId, String password) async {
  Map<String, Object> data = Map();

  data["userId"] = userId;
  data["password"] = password;

  await _chatModule.invokeMethod(CONNECT_METHOD, data);
}