PHPDaemon\Servers\WebSocket\Connection::gracefulShutdown PHP Method

gracefulShutdown() public method

Called when the worker is going to shutdown.
public gracefulShutdown ( ) : boolean
return boolean Ready to shutdown ?
    public function gracefulShutdown()
    {
        if (!$this->route || $this->route->gracefulShutdown()) {
            $this->finish();
            return true;
        }
        return false;
    }