WebSocketHelper 方法 |
WebSocketHelper 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| BuildWsQARequest |
创建连接服务器的http请求,采用问答的机制
| |
| BuildWsRequest |
根据额外的参数信息,创建新的websocket的请求信息
| |
| BuildWsSubRequest |
创建连接服务器的http请求,输入订阅的主题信息
| |
| CalculateWebscoketSha1 |
计算websocket返回得令牌
| |
| CheckWebSocketLegality |
检测当前的反馈对象是否是标准的websocket请求
| |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
| GetHashCode | Serves as the default hash function. (继承自 Object。) | |
| GetResponse |
获取初步握手的时候的完整返回的数据信息
| |
| GetSecKeyAccetp |
根据http网页的信息,计算出返回的安全令牌
| |
| GetType | Gets the Type of the current instance. (继承自 Object。) | |
| GetWebSocketSubscribes |
从当前的websocket的HTTP请求头里,分析出订阅的主题内容
| |
| GetWebSocketSubscribesFromUrl |
从当前的Websocket的Url里,分析出订阅的主题内容
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
| ReceiveWebSocketPayload |
从socket接收一条完整的websocket数据,返回WebSocketMessage的数据信息 Receive a complete websocket data from the socket, return the data information of the WebSocketMessage | |
| ReceiveWebSocketPayloadAsync |
从socket接收一条完整的websocket数据,返回WebSocketMessage的数据信息 Receive a complete websocket data from the socket, return the data information of the WebSocketMessage | |
| ToString | Returns a string that represents the current object. (继承自 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. |