eee
This commit is contained in:
@@ -21,8 +21,20 @@ abstract class Websocket implements OnMessageInterface, OnDisconnectInterface
|
|||||||
public Transport $transport;
|
public Transport $transport;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Server
|
||||||
|
*/
|
||||||
private Server $server;
|
private Server $server;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Server
|
||||||
|
*/
|
||||||
|
public function getServer(): Server
|
||||||
|
{
|
||||||
|
return $this->server;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $host
|
* @param string $host
|
||||||
* @param int $port
|
* @param int $port
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
use Coroutine\Server\Transport;
|
|
||||||
use Coroutine\Server\Websocket;
|
use Coroutine\Server\Websocket;
|
||||||
use Kiri\Router\Constrict\ConstrictRequest;
|
use Kiri\Router\Constrict\ConstrictRequest;
|
||||||
use Swoole\Coroutine\Http\Client;
|
use Swoole\Coroutine\Http\Client;
|
||||||
use Swoole\Coroutine\Http\Server;
|
use Swoole\Coroutine\Http\Server;
|
||||||
use Swoole\Http\Request;
|
|
||||||
use Swoole\Http\Response;
|
use Swoole\Http\Response;
|
||||||
use Swoole\WebSocket\Frame;
|
use Swoole\WebSocket\Frame;
|
||||||
use function Co\run;
|
use function Co\run;
|
||||||
|
|||||||
Reference in New Issue
Block a user