111
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Server\Constrict;
|
||||
|
||||
use Server\ResponseInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
interface Emitter
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ use Exception;
|
||||
use Http\Context\Formatter\FileFormatter;
|
||||
use Kiri\Exception\NotFindClassException;
|
||||
use ReflectionException;
|
||||
use Server\ResponseInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Swoole\Server;
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Server\Constrict;
|
||||
|
||||
use Http\Context\Formatter\FileFormatter;
|
||||
use Kiri\Exception\NotFindClassException;
|
||||
use Server\ResponseInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Swoole\Server;
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace Server\Constrict;
|
||||
|
||||
use Kiri\Exception\NotFindClassException;
|
||||
use Server\ResponseInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Swoole\Server;
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Server\Constrict;
|
||||
|
||||
|
||||
use Kiri\Exception\NotFindClassException;
|
||||
use Server\ResponseInterface;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -22,6 +22,6 @@ class WebSocketEmitter implements Emitter
|
||||
*/
|
||||
public function sender(mixed $response, ResponseInterface $emitter): void
|
||||
{
|
||||
$response->push($emitter->getClientId(), $emitter->getContent()->getData());
|
||||
// $response->push($emitter->getClientId(), $emitter->getContent()->getData());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user