Method SendAsync
SendAsync(string)
Asynchronously sends an text message to the remote point.
public ValueTask<bool> SendAsync(string message)
Parameters
message
stringThe target message which will be as an encoded UTF-8 string.
Returns
SendAsync(ReadOnlyMemory<byte>)
Asynchronously sends an binary message to the remote point.
public ValueTask<bool> SendAsync(ReadOnlyMemory<byte> buffer)
Parameters
buffer
ReadOnlyMemory<byte>The target message which will be as an encoded UTF-8 string.