点击或拖拽改变大小

WebSocketClientConnectServer 方法

连接服务器,实例化客户端之后,至少要调用成功一次,如果返回失败,那些请过一段时间后重新调用本方法连接。
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 中) 版本:12.1.2.0 (12.1.2.0)
语法
public OperateResult ConnectServer()

返回值

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