Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chat client with GWT

Tags:

What would be the best way to create a JS chat client with GWT? The bit that I'm having trouble with is the persistence and transfer of the messages. Should I store the messages in a DB and check the db for new messages? Is there a much better way to do this?

like image 729
Matthew H Avatar asked Mar 16 '10 21:03

Matthew H


1 Answers

Like jah suggested, you definitely want to use Comet/Server Push/Reverse AJAX/many other names. I've compiled your options for GWT in another post.

If you want a quick start, look at the NGiNX_HTTP_Push_Module - they have an easy to understand chat example. You'll have to write some handling of the protocol yourself, but it's a rather simple task.

If you're using Java too on the backend, the easier solution will be rocket-gwt or cometd.

like image 55
Igor Klimer Avatar answered Oct 11 '22 11:10

Igor Klimer