[Modify] Polish it
This commit is contained in:
parent
24f65e4d72
commit
1c52fb72aa
@ -550,9 +550,12 @@ Extended Payload Length: {7}
|
||||
}
|
||||
|
||||
private static void readHeaderAsync (
|
||||
Stream stream, Action<WebSocketFrame> completed, Action<Exception> error)
|
||||
Stream stream, Action<WebSocketFrame> completed, Action<Exception> error
|
||||
)
|
||||
{
|
||||
stream.ReadBytesAsync (2, bytes => completed (processHeader (bytes)), error);
|
||||
stream.ReadBytesAsync (
|
||||
2, bytes => completed (processHeader (bytes)), error
|
||||
);
|
||||
}
|
||||
|
||||
private static WebSocketFrame readMaskingKey (Stream stream, WebSocketFrame frame)
|
||||
|
Loading…
Reference in New Issue
Block a user