[Modify] Add a property

Add IsBinary property to determine that the message type is binary.
This commit is contained in:
sta 2015-11-13 14:52:35 +09:00
parent 0e0fdbdfbd
commit 6da68d455a

View File

@ -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>
/// Gets a value indicating whether the message type is text.
/// </summary>