java - websocket closing connection automatically -



java - websocket closing connection automatically -

i'm building application in java has embedded websocket server based on jetty. client default websocket implementation in google chrome. working ok, if there no transfer between server , client after time connection closed. i'm not sure who's closing connection: jetty server or chrome browser.

the solution think send message every x seconds, i'm opened improve solutions.

so... questions are:

is websocket protocol requires , in case chrome browser closing connection?

is more jetty related , has more or less websocket protocol? in case how disable in jetty?

is there problem??

thanks

update: if send 1 message/second still connection closed

you need send ping messages time time. think default timeout 300 seconds. sending websocket ping/pong frame browser

java javascript google-chrome jetty websocket

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -