This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes detect  browser states on  java socket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply locked New topic
Author

detect browser states on java socket

varun kukreja
Greenhorn

Joined: Apr 17, 2013
Posts: 6
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

Joined: Jan 03, 2004
Posts: 6109
    
    6

Duplicate of http://www.coderanch.com/t/609760/sockets/java/Java-Socket-Programming.

Locking.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: detect browser states on java socket
 
Similar Threads
reading a stream twice but download it only once
Invalidate session when browser is closed
How to retrieve entered web address in browser from java code.
Window listener
Java Socket Programming