processHungUpFromUser method

void processHungUpFromUser(
  1. CubeRTCSessionDescription cubeRtcSdp,
  2. int opponentId
)

Implementation

void processHungUpFromUser(
  CubeRTCSessionDescription cubeRtcSdp,
  int opponentId,
) {
  log(
    "processHungUpFromUser, "
    "sessionId = ${cubeRtcSdp.sessionId}, "
    "senderId = $opponentId",
    TAG,
  );

  closeConnectionForOpponent(opponentId, (opponentId) {
    if (onReceiveHungUpFromUser != null) {
      onReceiveHungUpFromUser!(this, opponentId, cubeRtcSdp.userInfo);
    }
  });
}