diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index ddd531d1..ea1dd804 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -660,6 +660,12 @@ namespace WebSocketSharp null); } + internal static void ReadBytesAsync2 ( + this Stream stream, int length, Action completed, Action error) + { + stream.readBytesAsync (new byte[length], 0, length, completed, error); + } + internal static string RemovePrefix (this string value, params string[] prefixes) { var idx = 0;