How do I write the code so that the chatroom only refreshes whenever someone types and submits something new to the room?
Currently, my chatroom refreshes every 15 seconds via a Javascript refresh, regardless of whether anything new is typed in the chatroom. Obviously this is a waste of server resources if someone walks away from their computer with the chatroom open.
In reply to perl chatroom by keiusui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |