diff --git a/SlackNet/IWebSocket.cs b/SlackNet/IWebSocket.cs index 93fb38f..4c272fc 100644 --- a/SlackNet/IWebSocket.cs +++ b/SlackNet/IWebSocket.cs @@ -17,7 +17,7 @@ public interface IWebSocket : IDisposable IObservable Messages { get; } } - class WebSocketWrapper : IWebSocket + public class WebSocketWrapper : IWebSocket { private readonly WebSocket _webSocket; diff --git a/SlackNet/WebSocketFactory.cs b/SlackNet/WebSocketFactory.cs index a65387e..5710700 100644 --- a/SlackNet/WebSocketFactory.cs +++ b/SlackNet/WebSocketFactory.cs @@ -1,4 +1,5 @@ -using WebSocket4Net; +using System.Security.Authentication; +using WebSocket4Net; namespace SlackNet { @@ -9,6 +10,6 @@ public interface IWebSocketFactory class WebSocketFactory : IWebSocketFactory { - public IWebSocket Create(string uri) => new WebSocketWrapper(new WebSocket(uri)); + public IWebSocket Create(string uri) => new WebSocketWrapper(new WebSocket(uri, sslProtocols: SslProtocols.Tls12)); } } \ No newline at end of file