PHPDaemon\Servers\WebSocket\Pool::removeRoute PHP 메소드

removeRoute() 공개 메소드

Removes a route.
public removeRoute ( string $path ) : boolean
$path string Route name
리턴 boolean Success
    public function removeRoute($path)
    {
        $routeName = ltrim($path, '/');
        if (!isset($this->routes[$routeName])) {
            return false;
        }
        unset($this->routes[$routeName]);
        return true;
    }