Files
kiri-http-server/Contract/OnPacketInterface.php
T

20 lines
318 B
PHP
Raw Normal View History

2022-01-09 03:49:02 +08:00
<?php
2022-01-10 11:39:55 +08:00
namespace Kiri\Server\Contract;
2022-01-09 03:49:02 +08:00
2022-01-10 11:39:55 +08:00
use Kiri\Server\Abstracts\Server;
2022-01-09 03:49:02 +08:00
interface OnPacketInterface
{
/**
* @param Server $server
* @param string $data
* @param array $clientInfo
* @return mixed
*/
public function onPacket(Server $server, string $data, array $clientInfo): void;
}