Overview
Features
Download
Documentation
Community
Add-Ons & Services

Detect client disconnect from WebSocket Server

Please post support and help requests here.

Detect client disconnect from WebSocket Server

Postby zarnce » 04 Apr 2013, 16:54

We have an app that when connected to serves up a lot of data over a WebSocket. The issue we are having is how to detect when a client disconnects. Currently sendFrame throws an 'I/O error' Exception. Is there a way to detect that the client has disconnected so we can clean up?

Thanks
Brian
zarnce
 
Posts: 12
Joined: 08 Jan 2013, 22:56

Re: Detect client disconnect from WebSocket Server

Postby zarnce » 12 Apr 2013, 20:38

So after testing the sendFrame does not always throw an I/O Error Exception. Is there a way to check for disconnect on the underlying socket?

Thanks
Brian
zarnce
 
Posts: 12
Joined: 08 Jan 2013, 22:56


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests