Table of Contents

Interface INatsTlsSocketConnection

Namespace
NATS.Client.Core
Assembly
NATS.Client.Abstractions.dll

Represents a NATS socket connection that already provides TLS, set up by a custom INatsSocketConnectionFactory or an OnSocketAvailableAsync hook.

public interface INatsTlsSocketConnection : INatsSocketConnection, IAsyncDisposable
Inherited Members

Remarks

When TLS is required (a tls:// or wss:// URL, certificate or CA options, or TLS mode Require or Implicit), the client only uses a socket connection that it can upgrade to TLS itself (INatsTlsUpgradeableSocketConnection) or one that implements this interface. Any other socket connection fails the connection attempt instead of carrying credentials in plaintext. Implement this interface only if the connection is TLS with the server's certificate verified.