[Modify] Polish it
This commit is contained in:
parent
b60111fd55
commit
7d520184c8
@ -198,13 +198,13 @@ namespace WebSocketSharp
|
|||||||
|
|
||||||
public bool IsControl {
|
public bool IsControl {
|
||||||
get {
|
get {
|
||||||
return _opcode == Opcode.Close || _opcode == Opcode.Ping || _opcode == Opcode.Pong;
|
return _opcode >= Opcode.Close;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsData {
|
public bool IsData {
|
||||||
get {
|
get {
|
||||||
return _opcode == Opcode.Binary || _opcode == Opcode.Text;
|
return _opcode == Opcode.Text || _opcode == Opcode.Binary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user