Table of Contents

Interface ITransportService

Namespace
DSharpPlus.Net.Gateway
Assembly
DSharpPlus.dll

Represents the lowest-level transport layer over a websocket.

public interface ITransportService

Methods

ConnectAsync(string, CancellationToken)

Opens a connection to the gateway.

DisconnectAsync(WebSocketCloseStatus, CancellationToken)

Disconnects from the gateway.

Initialize(string, IPayloadDecompressor)

Initializes the transport service.

ReadAsync(CancellationToken)

Reads the next message from the gateway asynchronously.

WriteAsync(ReadOnlyMemory<byte>, WebSocketMessageType)

Writes the specified message to the gateway.