改名
This commit is contained in:
@@ -12,6 +12,7 @@ use Snowflake\Di\Container;
|
|||||||
use Snowflake\Exception\NotFindClassException;
|
use Snowflake\Exception\NotFindClassException;
|
||||||
use Snowflake\Process\Process;
|
use Snowflake\Process\Process;
|
||||||
use Swoole\Coroutine;
|
use Swoole\Coroutine;
|
||||||
|
use Swoole\WebSocket\Server;
|
||||||
|
|
||||||
class Snowflake
|
class Snowflake
|
||||||
{
|
{
|
||||||
@@ -195,6 +196,16 @@ class Snowflake
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Server|\Swoole\Http\Server
|
||||||
|
* @throws
|
||||||
|
*/
|
||||||
|
public static function getWebSocket()
|
||||||
|
{
|
||||||
|
return static::app()->get('server')->getServer();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $class
|
* @param string $class
|
||||||
* @param array $params
|
* @param array $params
|
||||||
|
|||||||
Reference in New Issue
Block a user