This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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