Table of Contents

Property SocketConnectionFactory

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

SocketConnectionFactory

Factory for creating socket connections to the NATS server. When set, this factory will be used instead of the default connection implementation. For the library to handle TLS upgrade automatically, implement the INatsTlsUpgradeableSocketConnection interface. If the factory sets up TLS itself, implement INatsTlsSocketConnection instead: when TLS is required, a socket connection that implements neither fails the connection attempt.

public INatsSocketConnectionFactory? SocketConnectionFactory { get; init; }

Property Value

INatsSocketConnectionFactory
See Also