diff --git a/Src/CortexClient.cs b/Src/CortexClient.cs index e4963f3..a9b5dbf 100644 --- a/Src/CortexClient.cs +++ b/Src/CortexClient.cs @@ -114,10 +114,13 @@ public void InitWebSocketClient() { _nextRequestId = 1; _wSC = new WebSocket(Config.AppUrl); + // Since Emotiv Cortex 3.7.0, the supported SSL Protocol will be TLS1.2 or later + _wSC.Security.EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12; + _methodForRequestId = new Dictionary(); _wSC.Opened += new EventHandler(WebSocketClient_Opened); - _wSC.Error += new EventHandler(WebSocketClient_Error); + _wSC.Error += new EventHandler(WebSocketClient_Error); _wSC.Closed += WebSocketClient_Closed; _wSC.MessageReceived += WebSocketClient_MessageReceived; _wSC.DataReceived += WebSocketClient_DataReceived;