点击或拖拽改变大小

WebSocketClientConnectServer 方法 (String)

连接服务器,实例化客户端之后,至少要调用成功一次,如果返回失败,那些请过一段时间后重新调用本方法连接。
After connecting to the server, the client must be called at least once after instantiating the client. If the return fails, please call this method to connect again after a period of time.

命名空间:  HslCommunication.WebSocket
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public OperateResult ConnectServer(
	string[] subscribes
)

参数

subscribes
类型:SystemString
订阅的消息

返回值

类型:OperateResult
连接是否成功
参见