This commit is contained in:
2022-10-11 18:55:06 +08:00
parent 268f8665d0
commit 5bfe8401f5
6 changed files with 57 additions and 61 deletions
@@ -3,20 +3,15 @@
namespace Kiri\Websocket\Contract;
use Swoole\WebSocket\Frame;
use Swoole\WebSocket\Server;
use Swoole\Coroutine\Http\Server as CoroutineServer;
interface OnCloseInterface
{
/**
* @param Server|CoroutineServer $server
* @param int $fd
* @return void
*/
public function onClose(Server|CoroutineServer $server, int $fd): void;
public function OnClose(int $fd): void;
}