diff --git a/websocket-sharp/MessageEventArgs.cs b/websocket-sharp/MessageEventArgs.cs
index 5715f148..09bf6149 100644
--- a/websocket-sharp/MessageEventArgs.cs
+++ b/websocket-sharp/MessageEventArgs.cs
@@ -97,6 +97,18 @@ namespace WebSocketSharp
}
}
+ ///
+ /// Gets a value indicating whether the message type is binary.
+ ///
+ ///
+ /// true if the message type is binary; otherwise, false.
+ ///
+ public bool IsBinary {
+ get {
+ return _opcode == Opcode.Binary;
+ }
+ }
+
///
/// Gets a value indicating whether the message type is text.
///