# Function: getMatchResult
▸ getMatchResult(): Promise‹ReadonlyWithExtensions‹Room› | null›
返回匹配结果的只读实例,若不存在匹配结果则返回null
example
// 在头部引入账号模块
import { matchSystem } from "@timi/mogs-sdk";
...
// 使用
const matchResult = await matchSystem.getMatchResult();
if (matchResult !== null) {
const { groupList, matchRoomId } = matchResult;
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 返回值:
Promise‹ReadonlyWithExtensions‹Room› | null›