Skip Menu |

This queue is for tickets about the Net-WebSocket-Server CPAN distribution.

Report information
The Basics
Id: 118392
Status: rejected
Priority: 0/
Queue: Net-WebSocket-Server

People
Owner: Nobody in particular
Requestors: peter [...] pscott.com.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: on_disconnect not triggered when client closes socket
As suggested in http://stackoverflow.com/questions/26942050/perl-how-do-i-know-when-socket-client-is-disconnected-when-user-closes-window It appears that the $conn->disconnect is only triggered when the server initiates a disconnect. Is there any way to have this triggered in cases where the client closes the connection?
From: peter [...] pscott.com.au
On Sat Oct 15 01:32:30 2016, peter@pscott.com.au wrote: Show quoted text
> As suggested in http://stackoverflow.com/questions/26942050/perl-how- > do-i-know-when-socket-client-is-disconnected-when-user-closes-window > > It appears that the $conn->disconnect is only triggered when the > server initiates a disconnect. Is there any way to have this triggered > in cases where the client closes the connection?
My bad - user error - apologies for the alarm - disconnect does work as intended.
On Sat Oct 15 02:32:20 2016, peter@pscott.com.au wrote: Show quoted text
> On Sat Oct 15 01:32:30 2016, peter@pscott.com.au wrote:
> > As suggested in http://stackoverflow.com/questions/26942050/perl-how- > > do-i-know-when-socket-client-is-disconnected-when-user-closes-window > > > > It appears that the $conn->disconnect is only triggered when the > > server initiates a disconnect. Is there any way to have this > > triggered > > in cases where the client closes the connection?
> > My bad - user error - apologies for the alarm - disconnect does work > as intended.
Okay! What was your issue? Can I update the documentation to prevent it from happening to others?