diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index e2ccdfc2..7cda4fba 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -604,6 +604,11 @@ namespace WebSocketSharp return value.StartsWith ("permessage-"); } + internal static bool IsCompressionExtension (this string value, CompressionMethod method) + { + return value.StartsWith (method.ToExtensionString ()); + } + internal static bool IsNoStatusCode (this ushort code) { return code == (ushort) CloseStatusCode.NoStatusCode;