Connection.(constructor)
构造 Connection
类的新实例
¥Constructs a new instance of the Connection
class
签名
¥Signature
class Connection {
constructor(
url: string,
transport: ConnectionTransport,
delay?: number,
timeout?: number,
rawErrors?: boolean,
);
}
参数
¥Parameters
范围 | 类型 | 描述 |
---|---|---|
url | string | |
transport | ||
delay | 数字 | (可选的) |
timeout | 数字 | (可选的) |
rawErrors | boolean | (可选的) |