Skip to content

格式

typescript
NetConversation.GetStoredValue(key)

所属类: NetConversation

描述

获取当前NetConversation的key中存储的值。

参数

参数名类型描述
keystring键值名称

返回值

类型描述
Promise<string>key值对应的value

代码示例

typescript
NetServer.on_converastion_connect = async (conv: NetConversation) => {
    const result = await conv.GetStoredValue("key");
}