I am creating an application in java that has a built-in websocket server based on the pier. The client is the default implementation of websocket in google chrome. Everything works fine, only if there is no transmission between the server and the client after a certain time, the connection is closed. I'm not sure who closes the connection: the quay server or the Chrome browser.
The solution to this, I think, is to send a message every x seconds, but I am open to better solutions.
SO ... my questions are:
Is this what the websocket protocol requires, in which case does the Chrome browser close my connection?
Is it something more connected with the pier and more or less connected with the websocket protocol? In this case, how to disable it in the berth?
Is there any other problem?
thank
UPDATE: even if I send 1 message per second, the connection closes
java javascript google-chrome jetty websocket
Doua Beri Jan 29 '12 at 19:44 2012-01-29 19:44
source share