Hi all,
I'm trying to implement a simple chatting website. For now what the code does is checking every 10 seconds if there are new posts stored in the database (newer than the last check, 10 seconds ago). Is there a more efficient way than doing this with a timer??? for example, is there some kind of event listener attached to the server that would notify the client whenever the db is updated? Thanks for your help, Clem.