This commit is contained in:
2023-04-01 23:49:43 +08:00
parent 8049805435
commit 5e6ffd9ae5
+1 -1
View File
@@ -89,7 +89,7 @@ class CoroutineServer implements ServerInterface
*/
public function addListener(SConfig $config): void
{
$server = new Coroutine\Http\Server($config->getHost(), $config->getPort(), false, true);
$server = new SchServer($config->getHost(), $config->getPort(), false, true);
$events = $config->getEvents()[Constant::REQUEST] ?? null;
if (is_null($events)) {