点击或拖拽改变大小

WebSocketHelperReceiveWebSocketPayload 方法

从socket接收一条完整的websocket数据,返回WebSocketMessage的数据信息
Receive a complete websocket data from the socket, return the data information of the WebSocketMessage

命名空间:  HslCommunication.WebSocket
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.5.3.0 (12.5.3.0)
语法
public static OperateResult<WebSocketMessage> ReceiveWebSocketPayload(
	CommunicationPipe pipe,
	bool decompress = true
)

参数

pipe
类型:HslCommunication.Core.PipeCommunicationPipe
当前通信的管道信息
decompress (Optional)
类型:SystemBoolean
是否对结果数据进行解压缩操作

返回值

类型:OperateResultWebSocketMessage
包含websocket消息的结果内容
参见