Kraken\Network\Socket\SocketServer::handleDisconnect PHP Method

handleDisconnect() public method

Handler triggered when an existing connection is being closed.
public handleDisconnect ( Kraken\Ipc\Socket\SocketInterface $socket )
$socket Kraken\Ipc\Socket\SocketInterface
    public function handleDisconnect($socket)
    {
        try {
            $this->component->handleDisconnect($socket->conn);
        } catch (Error $ex) {
            $this->handleError($socket, $ex);
        } catch (Exception $ex) {
            $this->handleError($socket, $ex);
        }
        unset($socket->conn);
    }