diff --git a/Contract/OnCloseInterface.php b/Contract/OnCloseInterface.php index 94c8fe7..6c011f2 100644 --- a/Contract/OnCloseInterface.php +++ b/Contract/OnCloseInterface.php @@ -2,6 +2,8 @@ namespace Kiri\Server\Contract; +use Swoole\Server; + /** * */ @@ -10,10 +12,11 @@ interface OnCloseInterface /** + * @param Server $server * @param int $fd * @return void */ - public function OnClose(int $fd): void; + public function onClose(Server $server, int $fd): void; } diff --git a/Contract/OnDisconnectInterface.php b/Contract/OnDisconnectInterface.php new file mode 100644 index 0000000..e08f743 --- /dev/null +++ b/Contract/OnDisconnectInterface.php @@ -0,0 +1,18 @@ +