|
|
|
@ -708,24 +708,6 @@ Extended Payload Length: {7}
|
|
|
|
|
|
|
|
|
|
|
|
internal static void ReadAsync (
|
|
|
|
internal static void ReadAsync (
|
|
|
|
Stream stream, bool unmask, Action<WebSocketFrame> completed, Action<Exception> error)
|
|
|
|
Stream stream, bool unmask, Action<WebSocketFrame> completed, Action<Exception> error)
|
|
|
|
{
|
|
|
|
|
|
|
|
readHeaderAsync (
|
|
|
|
|
|
|
|
stream,
|
|
|
|
|
|
|
|
frame => {
|
|
|
|
|
|
|
|
readExtendedPayloadLength (stream, frame);
|
|
|
|
|
|
|
|
readMaskingKey (stream, frame);
|
|
|
|
|
|
|
|
readPayloadData (stream, frame);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (unmask)
|
|
|
|
|
|
|
|
frame.Unmask ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
completed (frame);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
error);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal static void ReadAsync2 (
|
|
|
|
|
|
|
|
Stream stream, bool unmask, Action<WebSocketFrame> completed, Action<Exception> error)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
readHeaderAsync (
|
|
|
|
readHeaderAsync (
|
|
|
|
stream,
|
|
|
|
stream,
|
|
|
|
|