modify plugin name

This commit is contained in:
2022-06-16 17:38:22 +08:00
parent 0233acb279
commit 0051f1f15c
25 changed files with 928 additions and 1055 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ interface OnCloseInterface
/**
* @param Server $server
* @param Server|\Swoole\Coroutine\Http\Server $server
* @param int $fd
* @return void
*/
public function onClose(Server $server, int $fd): void;
public function onClose(Server|\Swoole\Coroutine\Http\Server $server, int $fd): void;
}
+2 -2
View File
@@ -10,10 +10,10 @@ interface OnMessageInterface
/**
* @param Server $server
* @param Server|\Swoole\Coroutine\Http\Server $server
* @param Frame $frame
* @return void
*/
public function onMessage(Server $server, Frame $frame): void;
public function onMessage(Server|\Swoole\Coroutine\Http\Server $server, Frame $frame): void;
}
+3 -2
View File
@@ -4,16 +4,17 @@ namespace Kiri\Server\Contract;
use Swoole\Http\Request;
use Swoole\WebSocket\Server;
use Swoole\Coroutine\Http\Server as HServer;
interface OnOpenInterface
{
/**
* @param Server $server
* @param Server|HServer $server
* @param Request $request
* @return void
*/
public function onOpen(Server $server, Request $request): void;
public function onOpen(Server|HServer $server, Request $request): void;
}
+1 -1
View File
@@ -12,7 +12,7 @@ interface OnPacketInterface
* @param Server $server
* @param string $data
* @param array $clientInfo
* @return mixed
* @return void
*/
public function onPacket(Server $server, string $data, array $clientInfo): void;