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