protected function loadRoutesFrom($path)
    {
        $router = $this->app[WsRouter::class];
        if (is_null($this->namespace)) {
            return require $path;
        }
        $router->group(['namespace' => $this->namespace], function ($router) use ($path) {
            require $path;
        });
    }