From 7d520184c89e8ed47ab276c9f4f9add7f8d59eb1 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 18 Dec 2015 15:36:52 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocketFrame.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/WebSocketFrame.cs b/websocket-sharp/WebSocketFrame.cs index dc440a2a..38865b97 100644 --- a/websocket-sharp/WebSocketFrame.cs +++ b/websocket-sharp/WebSocketFrame.cs @@ -198,13 +198,13 @@ namespace WebSocketSharp public bool IsControl { get { - return _opcode == Opcode.Close || _opcode == Opcode.Ping || _opcode == Opcode.Pong; + return _opcode >= Opcode.Close; } } public bool IsData { get { - return _opcode == Opcode.Binary || _opcode == Opcode.Text; + return _opcode == Opcode.Text || _opcode == Opcode.Binary; } }