Table of Contents

Method SendAsync

Namespace
Sisk.Core.Http.Streams
Assembly
Sisk.Core.dll

SendAsync(string)

Asynchronously sends an text message to the remote point.

public ValueTask<bool> SendAsync(string message)

Parameters

message string

The target message which will be as an encoded UTF-8 string.

Returns

ValueTask<bool>

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.

Returns

ValueTask<bool>