joinChannel method

Future<void> joinChannel(
  1. ChatCallKitCallType type,
  2. String token,
  3. String channel,
  4. int uid,
)

Implementation

Future<void> joinChannel(
  ChatCallKitCallType type,
  String token,
  String channel,
  int uid,
) async {
  try {
    await _engine.joinChannel(
      token: token,
      channelId: channel,
      uid: uid,
      options: const ChannelMediaOptions(),
    );
  } catch (e) {
    handler.onError?.call(ErrorCodeType.errFailed,
        "General error with no classified reason. Try calling the method again");
  }
}