| WebSocketHelperBuildWsSubRequest 方法  | 
 
            创建连接服务器的http请求,输入订阅的主题信息
            
 
        命名空间: 
     HslCommunication.WebSocket
        程序集:
     HslCommunication (在 HslCommunication.dll 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法public static byte[] BuildWsSubRequest(
	string ipAddress,
	int port,
	string url,
	string[] subscribes,
	bool getCarryHostAndPort
)
Public Shared Function BuildWsSubRequest ( 
	ipAddress As String,
	port As Integer,
	url As String,
	subscribes As String(),
	getCarryHostAndPort As Boolean
) As Byte()
public:
static array<unsigned char>^ BuildWsSubRequest(
	String^ ipAddress, 
	int port, 
	String^ url, 
	array<String^>^ subscribes, 
	bool getCarryHostAndPort
)
static member BuildWsSubRequest : 
        ipAddress : string * 
        port : int * 
        url : string * 
        subscribes : string[] * 
        getCarryHostAndPort : bool -> byte[] 
参数
- ipAddress
- 类型:SystemString
 远程服务器的ip地址
- port
- 类型:SystemInt32
 远程服务器的端口号
- url
- 类型:SystemString
 参数信息
- subscribes
- 类型:SystemString
 通知hsl的服务器,需要订阅的topic信息
- getCarryHostAndPort
- 类型:SystemBoolean
 GET命令是否携带 Host 信息。
返回值
类型:
Byte报文信息
 参见
参见