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