diff --git a/System/Snowflake.php b/System/Snowflake.php index 6d688b91..42b33bc5 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -375,7 +375,7 @@ class Snowflake * @return Server|null * @throws */ - public static function getWebSocket(): ?Server + public static function getWebSocket(): ?\Swoole\Server { $server = static::app()->getSwoole(); if (!($server instanceof \Swoole\Server)) {