[Modify] Add a property

Add IsText property to determine that the message type is text.
This commit is contained in:
sta 2015-11-13 14:45:16 +09:00
parent 03fc76ce06
commit 0e0fdbdfbd

View File

@ -97,6 +97,18 @@ namespace WebSocketSharp
}
}
/// <summary>
/// Gets a value indicating whether the message type is text.
/// </summary>
/// <value>
/// <c>true</c> if the message type is text; otherwise, <c>false</c>.
/// </value>
public bool IsText {
get {
return _opcode == Opcode.Text;
}
}
/// <summary>
/// Gets the message data as an array of <see cref="byte"/>.
/// </summary>