Skip to content

Commit

Permalink
Added some test cases and optimized the code comments. (#5845)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jun 17, 2023
1 parent 714995e commit 70a31fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OnReceiveInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
*/
namespace Hyperf\Contract;

use Hyperf\Server\Connection as HyperfConnection;
use Swoole\Coroutine\Server\Connection;
use Swoole\Server as SwooleServer;
use Swow\Socket;

interface OnReceiveInterface
{
/**
* @param Connection|Socket|SwooleServer $server
* @param Connection|HyperfConnection|Socket|SwooleServer $server
*/
public function onReceive($server, int $fd, int $reactorId, string $data): void;
}

0 comments on commit 70a31fb

Please sign in to comment.