Interface ITransportService
- Namespace
- DSharpPlus.Net.Gateway
- Assembly
- DSharpPlus.dll
Represents the lowest-level transport layer over the gateway. This type is not thread-safe.
public interface ITransportService
Methods
- ConnectAsync(string, int?)
Opens a connection to the gateway.
- DisconnectAsync(WebSocketCloseStatus)
Disconnects from the gateway.
- ReadAsync()
Reads the next message from the gateway asynchronously.
- WriteAsync(byte[])
Writes the specified message to the gateway.