Connection.send() 方法
¥Connection.send() method
签名
¥Signature
class Connection {
send<T extends keyof ProtocolMapping.Commands>(
method: T,
params?: ProtocolMapping.Commands[T]['paramsType'][0],
options?: CommandOptions,
): Promise<ProtocolMapping.Commands[T]['returnType']>;
}
参数
¥Parameters
范围 | 类型 | 描述 |
---|---|---|
method | T | |
params | ProtocolMapping.Commands[T]['paramsType'][0] | (可选的) |
options | (可选的) |
Returns:
Promise<ProtocolMapping.Commands[T]['returnType']>