@tunnelbox/core 0.1.11 → 0.1.17
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/package.json +1 -1
- package/src/types.ts +2 -0
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -10,6 +10,8 @@ export interface Envelope<T = unknown> {
|
|
|
10
10
|
ts: number;
|
|
11
11
|
/** 中继注入/回填:手机端会话 id,用于回路由 */
|
|
12
12
|
clientID?: string;
|
|
13
|
+
/** 用户级单连接:agent→手机由中继注入来源 agentID;手机→agent 由客户端填目标 agentID */
|
|
14
|
+
agentID?: string;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
export function envelope<T>(type: string, payload: T, id?: string): Envelope<T> {
|