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