Skip to main content
Version: 23.8.0

Connection.(constructor)

构造 Connection 类的新实例

¥Constructs a new instance of the Connection class

签名

¥Signature

class Connection {
constructor(
url: string,
transport: ConnectionTransport,
delay?: number,
timeout?: number,
);
}

参数

¥Parameters

范围

类型

描述

url

string

transport

ConnectionTransport

delay

数字

(可选的)

timeout

数字

(可选的)