[Modify] Polish it

This commit is contained in:
sta 2019-08-15 22:05:30 +09:00
parent 24f65e4d72
commit 1c52fb72aa

View File

@ -550,9 +550,12 @@ Extended Payload Length: {7}
} }
private static void readHeaderAsync ( 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) private static WebSocketFrame readMaskingKey (Stream stream, WebSocketFrame frame)