Askedio\LaravelRatchet\PusherServer::onClose PHP Method

onClose() public method

This is called before or after a socket is closed (depends on how it's closed). SendMessage to $conn will not result in an error if it has already been closed.
public onClose ( Ratchet\ConnectionInterface $conn )
$conn Ratchet\ConnectionInterface The socket/connection that is closing/closed
    public function onClose(ConnectionInterface $conn)
    {
        //
    }