Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data
This commit is contained in:
29
Vendor/EmbedIO-3.5.2/WebSockets/Internal/WebSocketReceiveResult.cs
vendored
Normal file
29
Vendor/EmbedIO-3.5.2/WebSockets/Internal/WebSocketReceiveResult.cs
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace EmbedIO.WebSockets.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a WS Receive result.
|
||||
/// </summary>
|
||||
internal sealed class WebSocketReceiveResult : IWebSocketReceiveResult
|
||||
{
|
||||
internal WebSocketReceiveResult(int count, Opcode code)
|
||||
{
|
||||
if (count < 0)
|
||||
throw new ArgumentOutOfRangeException(nameof(count));
|
||||
|
||||
Count = count;
|
||||
EndOfMessage = code == Opcode.Close;
|
||||
MessageType = code == Opcode.Text ? 0 : 1;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public int Count { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool EndOfMessage { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public int MessageType { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user