diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index 3e52d93..1a03aaa 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -78,6 +78,8 @@ class StartServer extends Command $this->configureRestartTimer(); + $this->configureRoutes(); + $this->startServer(); } @@ -159,6 +161,16 @@ class StartServer extends Command }); } + /** + * Register the routes for the server. + * + * @return void + */ + protected function configureRoutes() + { + WebSocketRouter::routes(); + } + /** * Configure the HTTP logger class. *