Method Send
Send(object?)
Sends an text message to the remote point.
public void Send(object? message)
Parameters
message
objectThe target message which will be as an encoded UTF-8 string.
Send(string)
Sends an text message to the remote point.
public void Send(string message)
Parameters
message
stringThe target message which will be as an encoded UTF-8 string.
Send(byte[])
Sends an binary message to the remote point.
public void Send(byte[] buffer)
Parameters
buffer
byte[]The target byte array.
Send(byte[], int, int)
Sends an binary message to the remote point.
public void Send(byte[] buffer, int start, int length)
Parameters
buffer
byte[]The target byte array.
start
intThe index at which to begin the memory.
length
intThe number of items in the memory.
Send(ReadOnlyMemory<byte>)
Sends an binary message to the remote point.
public void Send(ReadOnlyMemory<byte> buffer)
Parameters
buffer
ReadOnlyMemory<byte>The target byte memory.