Have a look at http://code.google.com/p/gwt-comet/ http://code.google.com/p/gwt-gae-channel/
/dmc On Fri, May 27, 2011 at 1:57 PM, hamish tushar chandola < [email protected]> wrote: > Hi Patrick, > > thanks for the help. > I am now trying to use websocket and there is only one example i cn find > online. > http://code.google.com/p/gwt-comet/wiki/WebSockets > > <http://code.google.com/p/gwt-comet/wiki/WebSockets>I do not understand > one thing. > websocket connects to some port.But where is the code to receive the > connection. > I do not think this is complete code. > Do you not think we would always get onClose() call back. > > Is there a complete example where I can look at client server > communication using socket in GWT. > > thanks > Hamish > > > On Fri, May 27, 2011 at 9:40 AM, Patrick Julien <[email protected]> wrote: > >> you can use websockets but not many browsers support it. You can use >> comet >> >> google "gwt comet" >> >> >> On Fri, May 27, 2011 at 12:36 PM, hamish tushar chandola >> <[email protected]> wrote: >> > Hi Patrick, >> > Is there a way in GWT to push data from server to client. >> > Right now i am using RPC asyncallback but for that client needs to make >> > request to server and then it responds. >> > So its more like pull mechanism .I wud need push . >> > Thanks >> > Hamish >> > >> > On Fri, May 27, 2011 at 6:31 AM, Patrick Julien <[email protected]> >> wrote: >> >> >> >> The gwt servlet may be a singleton but it supports a multi-threading >> >> environment >> >> >> >> > >> >> > So in short there are 2 problems. >> >> > 1.Can i have TCP library on client side.(If yes then no need for >> >> > second problem) >> >> >> >> no >> >> >> >> > 2.If not then i need to create a new TCP client at GWT server (RPC) >> >> > and keep track of which client did that and send updates to that >> >> > client.Since each client would have a different data on TCP server >> >> > read. >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> Groups >> >> "Google Web Toolkit" group. >> >> To post to this group, send email to >> [email protected]. >> >> To unsubscribe from this group, send email to >> >> [email protected]. >> >> For more options, visit this group at >> >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> >> > >> > >> > >> > -- >> > ~Hamish >> > ~~~~~Hope is a good thing, maybe the best of things, and no good thing >> ever >> > dies. >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Google Web Toolkit" group. >> > To post to this group, send email to >> [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/google-web-toolkit?hl=en. >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > > > -- > ~Hamish > ~~~~~Hope is a good thing, maybe the best of things, and no good thing ever > dies. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
