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:38 AM, J.Ganesan <j.ganesan@datastoregwt.com> wrote:
You can replicate the TCP client server communication in your
existing code in GWT with websockets.
J.Ganesan
www.DataStoreGwt.com
On May 27, 10:36 am, ham <hamish.tus...@gmail.com> wrote:
> Hi,
> I have this code wherein i have a TCP client server communication
> happening.The server reads a file which has integers stored in it and
> sends response to each client .The server spawns a new thread for each
> client.
> I need to make use of GWT to show a fish moving with new updates from
> server.
> Now i cannot have TCP class on client side as GWT would not allow
> socket library on client side.So i create a new TCP client on
> server(GWT server) and things work.
> But I cannot create multiple TCP clients (multiple tabs opened) as
> GWT server is singleton.
> So i thought of creating a new TCP client on each new request from
> browser but i cannot keep track of which client made the request as
> each is a new process and there is no connection between tabs.
>
> So I am little stuck here.
>
> So in short there are 2 problems.
> 1.Can i have TCP library on client side.(If yes then no need for
> second problem)
> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment