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
Post a Comment