# Function: sendCustomRequest

sendCustomRequest(params: CustomRequestParams): Promise‹CustomResponseParams

游戏自定义透传请求

example

import { utilsSystem } from '@timi/mogs-sdk';

//...
const costomReq = await utilsSystem.sendCustomRequest({buff: `hello world!`});
// utilsSystem.sendCustomRequest result: {buff: "hello mogs :)"}
1
2
3
4
5

# 参数:

属性 类型 描述
params CustomRequestParams 调用参数

CustomRequestParams

属性 类型 描述
buff string 要发送的请求数据

# 返回值:

Promise‹CustomResponseParams