Skip to content

Commit

Permalink
Merge pull request #26 from Emotiv/BRV-154
Browse files Browse the repository at this point in the history
update sslprotocol because cortex 3.7 doesn't support tls1.1
  • Loading branch information
hoangphamemotiv authored Nov 3, 2023
2 parents 6dddea6 + b69c4f7 commit ca9f3c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Src/CortexClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<int, string>();

_wSC.Opened += new EventHandler(WebSocketClient_Opened);
_wSC.Error += new EventHandler<SuperSocket.ClientEngine.ErrorEventArgs>(WebSocketClient_Error);
_wSC.Error += new EventHandler<SuperSocket.ClientEngine.ErrorEventArgs>(WebSocketClient_Error);
_wSC.Closed += WebSocketClient_Closed;
_wSC.MessageReceived += WebSocketClient_MessageReceived;
_wSC.DataReceived += WebSocketClient_DataReceived;
Expand Down

0 comments on commit ca9f3c3

Please sign in to comment.