Files

27 lines
404 B
PHP
Raw Permalink 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
2026-04-04 10:41:53 +08:00
use Swoole\Server;
2022-01-09 03:49:02 +08:00
/**
* Interface OnPipeMessageInterface
* @package Server\Contract
*/
interface OnPipeMessageInterface
{
/**
2026-04-04 10:41:53 +08:00
* @param Server $server
* @param int $src_worker_id
* @param mixed $message
* @return void
2022-01-09 03:49:02 +08:00
*/
2026-04-04 10:41:53 +08:00
public function onPipeMessage(Server $server, int $src_worker_id, mixed $message): void;
2022-01-09 03:49:02 +08:00
}