格式
typescript
NetConversation.GetStoredValue(key)所属类: NetConversation
描述
获取当前NetConversation的key中存储的值。
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| key | string | 键值名称 |
返回值
| 类型 | 描述 |
|---|---|
Promise<string> | key值对应的value |
代码示例
typescript
NetServer.on_converastion_connect = async (conv: NetConversation) => {
const result = await conv.GetStoredValue("key");
}