rkljw 4 months ago
parent
commit
82a1853f3a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      config/autoload/server.php

+ 2 - 2
config/autoload/server.php

@@ -23,8 +23,8 @@ return [
             'port' => 9501,
             'port' => 9501,
             'sock_type' => SWOOLE_SOCK_TCP,
             'sock_type' => SWOOLE_SOCK_TCP,
             'callbacks' => [
             'callbacks' => [
-//                Event::ON_REQUEST => [App\Service\Server\StreamServer::class, 'onRequest'],
-                Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
+                Event::ON_REQUEST => [App\Service\Server\StreamServer::class, 'onRequest'],
+//                Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
             ],
             ],
         ],
         ],
         [
         [