erp_old/vendor/hyperf/contract/src/OnMessageInterface.php

27 lines
519 B
PHP
Raw Normal View History

2024-05-07 16:45:39 +08:00
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
2024-05-07 18:19:31 +08:00
2024-05-07 16:45:39 +08:00
namespace Hyperf\Contract;
use Swoole\Http\Response;
use Swoole\WebSocket\Frame;
use Swoole\WebSocket\Server;
interface OnMessageInterface
{
/**
* @param Response|Server $server
* @param Frame $frame
*/
public function onMessage($server, $frame): void;
}