Method ConnectAsync NamespaceNATS.Net AssemblyNATS.Client.Simplified.dll ConnectAsync() Connect socket and write CONNECT command to nats server. public ValueTask ConnectAsync() Returns ValueTask