改名
This commit is contained in:
@@ -5,7 +5,6 @@ namespace Server\Constrict;
|
||||
|
||||
use Kiri\Exception\NotFindClassException;
|
||||
use Server\ResponseInterface;
|
||||
use Swoole\WebSocket\Server;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -15,13 +14,13 @@ class WebSocketEmitter implements Emitter
|
||||
|
||||
|
||||
/**
|
||||
* @param Server $response
|
||||
* @param mixed $response
|
||||
* @param ResponseInterface $emitter
|
||||
* @throws NotFindClassException
|
||||
* @throws \ReflectionException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function sender(Server $response, ResponseInterface $emitter)
|
||||
public function sender(mixed $response, ResponseInterface $emitter): void
|
||||
{
|
||||
$response->push($emitter->getClientId(), $emitter->getContent()->getData());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user