b2728947a3
This reverts commit fdf58326
20 lines
318 B
PHP
20 lines
318 B
PHP
<?php
|
|
|
|
namespace Kiri\Server\Contract;
|
|
|
|
use Kiri\Server\Abstracts\Server;
|
|
|
|
interface OnPacketInterface
|
|
{
|
|
|
|
|
|
/**
|
|
* @param Server $server
|
|
* @param string $data
|
|
* @param array $clientInfo
|
|
* @return mixed
|
|
*/
|
|
public function onPacket(Server $server, string $data, array $clientInfo): void;
|
|
|
|
}
|