Browse Source

新增参数

loki.wu 2 years ago
parent
commit
30760d261f
1 changed files with 2 additions and 0 deletions
  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] 主机地址