I am thinking of writing some little online game(like pogo.com maybe)
or IM in java. But I am not sure how I can get the message from the
server. I don't want to keep refreshing the browser every second to
check for new message / new changes (using browser approach) nor using
a while loop to send http request to server (using applet)
Is there some developed technology (e.g. protocol) that when
connection is opened client and server can keep talking without using
an inefficient while loop?
Some code example would be great!
(P.S. what about it's a J2ME apps, is that apply to it too?)