跳到主要内容

connect

连接代理服务器

声明

bool connect(string host, int port, map para = {}, bool using_websocket = false)

参数

参数名描述
host地址
port端口
para连接参数
using_websocket是否使用websocket(true - 使用websocket, false - 不使用websocket;默认值为false)

返回值

true - 连接成功, false - 连接失败

使用方式

返回文档