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