From: Clemens E. <Lin...@we...> - 2003-10-12 18:19:56
|
Hi again!=20 =20 I=B4m currently thinking about writing a simple JS-Chat, so that the chat do= ent need to reload always when=20 new messages recieve.=20 The problem is, that the server should connect to the client, which is not= possible as far as I know, this=20 means the client has to use possling and aks all x seconds the server for = new messages.=20 =20 1.) Is there no other was to do this than polling=3F=20 =20 2.) These are the only polling-ideas I had:=20 * Blocking soda-rpc function. Blocks till messages are on server. (Problem= with blocking - no events etc=3F)=20 * Non-Blocking soda-rpc function. Returns -1 if nothing is there...=20 =20 Is the blocking version possible, or will it cause the application to hand= in the poll-loop. This is a problem=20 in my eyes since JS hasnt support f=FCr Multithreading :(=20 =20 Does anybody have better ideas, I=B4m not really happy with my stuff..=20 =20 lg Clemens=20 =20 PS1: How hard would it be to adopt dynapi to knoqueror=3F (only because it i= nterrests me why so many=20 examples dont work..)=20 PS2: Dynapi is great!=20 =20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F Zwei Mal Platz 1 mit dem jeweils besten Testergebnis! WEB.DE FreeMail und WEB.DE Club bei Stiftung Warentest! http://f.web.de/=3Fmc=3D021183 |