[Modify] Polish it

This commit is contained in:
sta 2019-08-09 21:50:42 +09:00
parent 2c890cbb2a
commit 909cb12717

View File

@ -103,13 +103,19 @@ namespace WebSocketSharp
}
internal WebSocketFrame (
Fin fin, Opcode opcode, PayloadData payloadData, bool compressed, bool mask)
Fin fin,
Opcode opcode,
PayloadData payloadData,
bool compressed,
bool mask
)
{
_fin = fin;
_opcode = opcode;
_rsv1 = opcode.IsData () && compressed ? Rsv.On : Rsv.Off;
_rsv2 = Rsv.Off;
_rsv3 = Rsv.Off;
_opcode = opcode;
var len = payloadData.Length;
if (len < 126) {