Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 6a23016

Browse files
committed
Registering routes
1 parent 375078e commit 6a23016

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Console/Commands/StartServer.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public function handle()
7878

7979
$this->configureRestartTimer();
8080

81+
$this->configureRoutes();
82+
8183
$this->startServer();
8284
}
8385

@@ -159,6 +161,16 @@ public function configureRestartTimer()
159161
});
160162
}
161163

164+
/**
165+
* Register the routes for the server.
166+
*
167+
* @return void
168+
*/
169+
protected function configureRoutes()
170+
{
171+
WebSocketRouter::routes();
172+
}
173+
162174
/**
163175
* Configure the HTTP logger class.
164176
*

0 commit comments

Comments
 (0)