public async Task<String> read()
{
if (isInitialized && stream != null)
{
try
{
byte[] data = new byte[1024];
int bytesRead = await stream.ReadAsync(data, 0, data.Length, ct);
string request = Encoding.UTF8.GetString(data, 0, bytesRead);
return request;
}
catch (Exception)
{
shutdown();
}
}
return null;
}