diff --git a/.gitignore b/.gitignore index 8329d9fc..7812a966 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ artifacts src/CommonAssemblyInfo.cs *.dotCover *mm_cache.bin +src/.vs/Fleck/v15/sqlite3/storage.ide diff --git a/src/Fleck/Handlers/Hybi13Handler.cs b/src/Fleck/Handlers/Hybi13Handler.cs index 20d633f3..7425b8a6 100644 --- a/src/Fleck/Handlers/Hybi13Handler.cs +++ b/src/Fleck/Handlers/Hybi13Handler.cs @@ -44,7 +44,9 @@ public static byte[] FrameData(byte[] payload, FrameType frameType) } memoryStream.Write(payload, 0, payload.Length); - + + memoryStream.Dispose(); + return memoryStream.ToArray(); } diff --git a/src/Fleck/Interfaces/ISocket.cs b/src/Fleck/Interfaces/ISocket.cs index b6481a0a..a058e4db 100644 --- a/src/Fleck/Interfaces/ISocket.cs +++ b/src/Fleck/Interfaces/ISocket.cs @@ -8,7 +8,7 @@ namespace Fleck { - public interface ISocket + public interface ISocket : IDisposable { bool Connected { get; } string RemoteIpAddress { get; }