WebSocketHelper 类 |
命名空间: HslCommunication.WebSocket
WebSocketHelper 类型公开以下成员。
名称 | 说明 | |
---|---|---|
WebSocketHelper | 初始化 WebSocketHelper 类的一个新实例 |
名称 | 说明 | |
---|---|---|
BuildWsQARequest |
创建连接服务器的http请求,采用问答的机制
| |
BuildWsRequest |
根据额外的参数信息,创建新的websocket的请求信息
| |
BuildWsSubRequest |
创建连接服务器的http请求,输入订阅的主题信息
| |
CalculateWebscoketSha1 |
计算websocket返回得令牌
| |
CheckWebSocketLegality |
检测当前的反馈对象是否是标准的websocket请求
| |
Equals | (继承自 Object。) | |
Finalize | (继承自 Object。) | |
GetHashCode | (继承自 Object。) | |
GetResponse |
获取初步握手的时候的完整返回的数据信息
| |
GetSecKeyAccetp |
根据http网页的信息,计算出返回的安全令牌
| |
GetType | (继承自 Object。) | |
GetWebSocketSubscribes |
从当前的websocket的HTTP请求头里,分析出订阅的主题内容
| |
GetWebSocketSubscribesFromUrl |
从当前的Websocket的Url里,分析出订阅的主题内容
| |
MemberwiseClone | (继承自 Object。) | |
ReceiveFrameWebSocketPayloadT |
从socket接收一条WebSocketMessage片段数据,返回WebSocketMessage的数据信息和是否最后一条数据内容 Receive a piece of WebSocketMessage fragment data from the socket, return the data information of WebSocketMessage and whether the last data content | |
ReceiveFrameWebSocketPayloadAsyncT |
从socket接收一条WebSocketMessage片段数据,返回WebSocketMessage的数据信息和是否最后一条数据内容 Receive a piece of WebSocketMessage fragment data from the socket, return the data information of WebSocketMessage and whether the last data content | |
ReceiveWebSocketPayloadT |
从socket接收一条完整的websocket数据,返回WebSocketMessage的数据信息 Receive a complete websocket data from the socket, return the data information of the WebSocketMessage | |
ReceiveWebSocketPayloadAsyncT |
从socket接收一条完整的websocket数据,返回WebSocketMessage的数据信息 Receive a complete websocket data from the socket, return the data information of the WebSocketMessage | |
ToString | (继承自 Object。) | |
WebScoketPackData(Int32, Boolean, Byte) |
将普通的文本信息转换成websocket的报文
| |
WebScoketPackData(Int32, Boolean, String) |
将普通的文本信息转换成websocket的报文
|
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |