sessix-server 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.d.ts CHANGED
@@ -13,6 +13,8 @@ interface ServerInstance {
13
13
  setExpoPush: (enabled: boolean) => void;
14
14
  /** 订阅所有 ServerEvent(供 Electron 内部使用,例如 Token 统计) */
15
15
  onServerEvent: (cb: (event: ServerEvent) => void) => () => void;
16
+ /** 运行时切换 mDNS 自动发现 */
17
+ setAutoConnect: (enabled: boolean) => void;
16
18
  }
17
19
  interface ServerOptions {
18
20
  /** 覆盖 token(默认读取 ~/.sessix/token 或自动生成) */
@@ -26,6 +28,8 @@ interface ServerOptions {
26
28
  authKeyPath: string;
27
29
  sandbox?: boolean;
28
30
  };
31
+ /** 是否启用 mDNS 自动发现(默认 true) */
32
+ enableAutoConnect?: boolean;
29
33
  }
30
34
  declare function start(opts?: ServerOptions): Promise<ServerInstance>;
31
35