וידאו

כל הוידאו

OUR NEEDS

this is what we requre

1.the chat use kurento media server which cuase high load on chat ....we need to change to mediasoup

*install  mediasoup 

*change  modul brodcast  and   chat app   to  use  it instad  of kurento

2.the connecting to chat is not writen good and can cuase a loop that make chat server down <user can make  a nonstop "post">

checkUserFromServer(username, password) {
    return new Promise((resolve, reject) => {
      const options = {
        method: 'POST',
        uri: 'https://www.trand-chat.com/index.php?option=com_ajax&custom=usercheck',
        form: {
          username,
          password,
        },
        // json: true,
        headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
        },
      };
 
      request(options).then( async (response) => {
        console.log("response : ", response)
        let rs = JSON.parse(response);
        if (rs.success) {
          return resolve(rs.success);
        }
        return reject(rs.message);
      })
        .catch((err) => {
          console.log(err);
          return reject(err);
        });
    });
  }
 

 

3.after connecting to chat it is not stoping search who is connected what his roll..which rooms  he  is , and is he broadcasting _>>> hight cpu---chat crash or lag

 

 

4/all information about users taken from db same db serve the chat conversion if }post reaquest --->db slow .-->...no chat  ...or if lots of users in chat db slow cannot connect to chat ! if db crash chat crash

 

5.landing page  and login page  allraedy  connect to  websocet  before  connecting to chat  --->high load on node var

m