Interface ITransportService
- Namespace
- DSharpPlus.Net.Gateway
- Assembly
- DSharpPlus.dll
Represents the lowest-level transport layer over a websocket.
public interface ITransportService
Methods
- ConnectAsync(string)
Opens a connection to the gateway.
- DisconnectAsync(WebSocketCloseStatus)
Disconnects from the gateway.
- Initialize(string, IPayloadDecompressor)
Initializes the transport service.
- ReadAsync()
Reads the next message from the gateway asynchronously.
- WriteAsync(ReadOnlyMemory<byte>, WebSocketMessageType)
Writes the specified message to the gateway.