From a74f109649288b49b3a4a8fd95d070aa562f6713 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 22 Jan 2015 16:18:50 +0900 Subject: [PATCH] Added the IsNoStatusCode (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 48da15ca..a3284c42 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -589,6 +589,11 @@ namespace WebSocketSharp return code == (ushort) CloseStatusCode.NoStatusCode; } + internal static bool IsNoStatusCode (this CloseStatusCode code) + { + return code == CloseStatusCode.NoStatusCode; + } + internal static bool IsPortNumber (this int value) { return value > 0 && value < 65536;