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 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult ConnectServer(
string[] subscribes
)
Public Function ConnectServer (
subscribes As String()
) As OperateResult
public:
OperateResult^ ConnectServer(
array<String^>^ subscribes
)
member ConnectServer :
subscribes : string[] -> OperateResult
参数
- subscribes
- 类型:SystemString
订阅的消息
返回值
类型:
OperateResult连接是否成功
参见