Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

detect browser states on java socket

 
varun kukreja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have made a server program using java socket, in which user hits my url and in response I am sending continous
stream of data which is changing at user browser.
if user closes the browser or open a new tab then that stream of data should be stopped.
My concern is ,how to detect any event if user close their browser or change the tab.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
 
    Bookmark Topic Watch Topic
  • New Topic