Skip to content

Commit

Permalink
Support TcpServer for Swow. (#4924)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jul 13, 2022
1 parent 5d1a229 commit c8e7aa0
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 @@ -13,11 +13,12 @@

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

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

0 comments on commit c8e7aa0

Please sign in to comment.