This commit is contained in:
2026-02-26 14:39:04 +08:00
parent eeb925b5b9
commit 77cf882f2e
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -9,10 +9,10 @@ interface OnDisconnectInterface
/** /**
* @param Server $server * @param Server|\Swoole\Coroutine\Http\Server $server
* @param int $fd * @param int $fd
* @return void * @return void
*/ */
public function onDisconnect(Server $server, int $fd): void; public function onDisconnect(Server|\Swoole\Coroutine\Http\Server $server, int $fd): void;
} }
+3 -3
View File
@@ -10,10 +10,10 @@ interface OnMessageInterface
/** /**
* @param Server $server * @param Server|\Swoole\Coroutine\Http\Server $server
* @param Frame $frame * @param Frame $frame
* @return void * @return void
*/ */
public function onMessage(Server $server, Frame $frame): void; public function onMessage(Server|\Swoole\Coroutine\Http\Server $server, Frame $frame): void;
} }