From 6ea406251caf418c9ebd63e39e30931ff3a62338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 12 Aug 2021 14:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/Service/Http.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Server/Service/Http.php b/Server/Service/Http.php index c6218720..832433f8 100644 --- a/Server/Service/Http.php +++ b/Server/Service/Http.php @@ -11,6 +11,7 @@ use ReflectionException; use Server\Events\OnAfterRequest; use Server\ResponseInterface; use Server\SInterface\OnClose; +use Server\SInterface\OnConnect; use Swoole\Error; use Swoole\Http\Request; use Swoole\Http\Response; @@ -19,10 +20,20 @@ use Swoole\Server; /** * */ -class Http extends \Server\Abstracts\Http implements OnClose +class Http extends \Server\Abstracts\Http implements OnClose, OnConnect { + /** + * @param Server $server + * @param int $fd + */ + public function onConnect(Server $server, int $fd): void + { + // TODO: Implement onConnect() method. + } + + /** * @param Request $request * @param Response $response