Skip to content

Commit

Permalink
Added OnPacketInterface. (#3103)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jan 11, 2021
1 parent 915f9e2 commit 45609fd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/OnPacketInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Contract;

use Swoole\WebSocket\Server;

interface OnPacketInterface
{
/**
* @param Server $server
* @param mixed $data
* @param array $clientInfo
*/
public function onPacket($server, $data, $clientInfo): void;
}

0 comments on commit 45609fd

Please sign in to comment.