Interface INatsSocketConnection
Represents a socket connection to a NATS server.
public interface INatsSocketConnection : IAsyncDisposable
- Inherited Members
Remarks
This interface defines the contract for low-level socket connections to NATS servers, providing methods for sending and receiving data and disposing the socket. Disposing should attempt to perform graceful shutdown of the socket.
Methods
- ReceiveAsync(Memory<byte>)
Receives data asynchronously from the connection.
- SendAsync(ReadOnlyMemory<byte>)
Sends data asynchronously over the connection.