WebSocketQANetReadFromServerAsync 方法 |
和websocket的服务器交互,将负载数据发送到服务器端,然后等待接收服务器的数据
Interact with the websocket server, send the load data to the server, and then wait to receive data from the server
命名空间:
HslCommunication.WebSocket
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult<string>> ReadFromServerAsync(
string payload
)
Public Function ReadFromServerAsync (
payload As String
) As Task(Of OperateResult(Of String))
public:
Task<OperateResult<String^>^>^ ReadFromServerAsync(
String^ payload
)
member ReadFromServerAsync :
payload : string -> Task<OperateResult<string>>
参数
- payload
- 类型:SystemString
数据负载
返回值
类型:
TaskOperateResultString返回的结果数据
参见