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 <[email protected]> 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 [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.
