modify plugin name
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user