This commit is contained in:
2026-04-04 10:34:16 +08:00
parent 77cf882f2e
commit 9e1e16dca9
2 changed files with 3 additions and 6 deletions
+1 -3
View File
@@ -2,17 +2,15 @@
namespace Kiri\Server\Contract;
use Swoole\WebSocket\Server;
interface OnDisconnectInterface
{
/**
* @param Server|\Swoole\Coroutine\Http\Server $server
* @param int $fd
* @return void
*/
public function onDisconnect(Server|\Swoole\Coroutine\Http\Server $server, int $fd): void;
public function onDisconnect(int $fd): void;
}
+2 -3
View File
@@ -10,10 +10,9 @@ interface OnMessageInterface
/**
* @param Server|\Swoole\Coroutine\Http\Server $server
* @param Frame $frame
* @param Frame $frame
* @return void
*/
public function onMessage(Server|\Swoole\Coroutine\Http\Server $server, Frame $frame): void;
public function onMessage(Frame $frame): void;
}