0

I want to try to make a chat system using php, ajax, databases and I`ve been curious how they make (for example) the online/offline status (notifications, messages) actualize, do they just refresh the code every second? or is there a sneaky way of not running a script every second

aminography
  • 21,986
  • 13
  • 70
  • 74

1 Answers1

0

You should read about websockets and socket.io . Ajax is powerful but is not meant for the purpose you are looking for.

async
  • 16
  • 2