|
|
@@ -27,7 +27,7 @@ namespace MQTTnet.Implementations |
|
|
|
{ |
|
|
|
var response = await _webSocket.ReceiveAsync(new ArraySegment<byte>(buffer, currentOffset, count), cancellationToken).ConfigureAwait(false); |
|
|
|
currentOffset += response.Count; |
|
|
|
|
|
|
|
|
|
|
|
if (response.MessageType == WebSocketMessageType.Close) |
|
|
|
{ |
|
|
|
await _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, string.Empty, cancellationToken).ConfigureAwait(false); |
|
|
@@ -56,15 +56,12 @@ namespace MQTTnet.Implementations |
|
|
|
public override bool CanSeek => false; |
|
|
|
public override bool CanWrite => true; |
|
|
|
|
|
|
|
public override long Length |
|
|
|
{ |
|
|
|
get { throw new NotSupportedException(); } |
|
|
|
} |
|
|
|
public override long Length => throw new NotSupportedException(); |
|
|
|
|
|
|
|
public override long Position |
|
|
|
{ |
|
|
|
get { throw new NotSupportedException(); } |
|
|
|
set { throw new NotSupportedException(); } |
|
|
|
get => throw new NotSupportedException(); |
|
|
|
set => throw new NotSupportedException(); |
|
|
|
} |
|
|
|
|
|
|
|
public override long Seek(long offset, SeekOrigin origin) |
|
|
|