From 45672e0781974bb04dbad1b94320756a33c60a6d Mon Sep 17 00:00:00 2001 From: localcc Date: Wed, 21 Apr 2021 19:00:29 +0300 Subject: [PATCH] Close with code added to interface (#312) --- src/Fleck/Interfaces/IWebSocketConnection.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fleck/Interfaces/IWebSocketConnection.cs b/src/Fleck/Interfaces/IWebSocketConnection.cs index 9dd37749..09a2cdae 100644 --- a/src/Fleck/Interfaces/IWebSocketConnection.cs +++ b/src/Fleck/Interfaces/IWebSocketConnection.cs @@ -17,6 +17,7 @@ public interface IWebSocketConnection Task SendPing(byte[] message); Task SendPong(byte[] message); void Close(); + void Close(int code); IWebSocketConnectionInfo ConnectionInfo { get; } bool IsAvailable { get; } }