From 49ea4e813e4370d715df1965135e98f6d50fc46c Mon Sep 17 00:00:00 2001 From: overflowerror Date: Thu, 12 Feb 2015 19:03:49 +0100 Subject: [PATCH] Update README.md --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4e4e8f..67052aa 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # webchat -some school project +First of all: Don't hate me for this. :D I wrote it in about 4 hours and therefore it's ugly. + +You can view the demo of this project at http://school.overflowerror.com/2013/info/chat (The server is not working at the moment; some sql-error; I already told the admin.). + +My personal goal for this project was not to use AJAX-polling for looking for new messages. In order to reduce bandwidth. + +So I made a server-side loop (ajax.php:69) which keeps polling the database for changes. If there are new messages, this script returns all new messages. After 55 loops the server-script returns some sort of "I'm sorry Dave, no new messages for you."-message. In either case the client-script starts the next request immediately. + +So basically I converted network-load to server-processor-load. :smile: