What is the best way to do a real time chat application..? Also the messages will be stored inside a database

  javascript, mysql, node.js, php, real-time

I want to create a real time chat application but i don’t know which language is the best. I also need the messages to stored in a database. I am very familiar with php and mysql but i don’t want the user to click refresh/reload the page every time in order to see new messages from other users. I want everything to be live. I don’t know if this covers my answer Can we use Firebase Realtime database with core PHP?

It would be much easier for ME, if i use php and mysql than rather use javascript with node.js but i don’t know how to do it or if it’s possible..

Thank you very much

Source: Ask PHP