浏览代码

新增参数

loki.wu 2 年之前
父节点
当前提交
30760d261f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/notifications/center.dart

+ 2 - 0
lib/notifications/center.dart

@@ -20,6 +20,8 @@ class WsNotificationCenter extends NotificationCenter {
   @override
   IConnection get connection => _connection!;
 
+  String get host => _host ?? '';
+
   /// 设置主机地址
   ///
   /// [host] 主机地址