[Modify] Add a property
Add IsBinary property to determine that the message type is binary.
This commit is contained in:
parent
0e0fdbdfbd
commit
6da68d455a
@ -97,6 +97,18 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets a value indicating whether the message type is binary.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// <c>true</c> if the message type is binary; otherwise, <c>false</c>.
|
||||||
|
/// </value>
|
||||||
|
public bool IsBinary {
|
||||||
|
get {
|
||||||
|
return _opcode == Opcode.Binary;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether the message type is text.
|
/// Gets a value indicating whether the message type is text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user