publishes([ __DIR__.'/../config/config.php' => base_path('config/websockets.php'), ], 'config'); $this->commands([ Console\StartWebSocketServer::class, ]); } public function register() { $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'websockets'); $this->app->singleton('websockets.router', function() { return new Router(); }); $this->app->singleton(ChannelManager::class, function() { return new ChannelManager(); }); } }