From 85d77399cccf308870f16037d844a6fe105a4e04 Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 23 Jan 2015 16:31:26 +0900 Subject: [PATCH] Added the IsSendable (CloseStatusCode) method --- websocket-sharp/Ext.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index a3284c42..dd3342fd 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -620,6 +620,11 @@ namespace WebSocketSharp return !code.IsReserved () || code.IsNoStatusCode (); } + internal static bool IsSendable (this CloseStatusCode code) + { + return !code.IsReserved () || code.IsNoStatusCode (); + } + internal static bool IsText (this string value) { var len = value.Length;