This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: detect browser states on java socket
 
Similar Threads
How to retrieve entered web address in browser from java code.
Java Socket Programming
Window listener
reading a stream twice but download it only once
Invalidate session when browser is closed