You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I trying to use this package but getting output message as shown on titile
`
/// Using a test's web socket echo server at: https://www.websocket.org/echo.html
[TestClass]
public class WebSocket4Net_UnitTest
{
private readonly string webSocketHost = "wss://echo.websocket.org/";
private readonly string echoCommand = "Hi, Kaazing! How are you?";
After some googling i found a possible solution but it isn't helped me.
I have tried to change target .Net framework for 4.6.2 also but got the same.
If to try with ws uri (webSocketHost = "ws://echo.websocket.org/") it will work. . I'm assumpting it may be related with some of TLS issue? Can you help.
The text was updated successfully, but these errors were encountered:
I think that the problem is related to the code found in the PR #123.
In the WebSocket4Net/WebSocket.NoSilverlight.cs file there is the following line: private SslProtocols m_SecureProtocols = SslProtocols.Default;
I think it should be private SslProtocols m_SecureProtocols = SslProtocols.None;
Use None instead of Default. Default permits only the Secure Sockets Layer (SSL) 3.0 or Transport Layer Security (TLS) 1.0 protocols to be negotiated, and those options are now considered obsolete. Consequently, Default is not allowed in many organizations. Despite the name of this field, SslStream does not use it as a default except under special circumstances.
for None:
Allows the operating system to choose the best protocol to use, and to block protocols that are not secure. Unless your app has a specific reason not to, you should use this field.
Hi.
I trying to use this package but getting output message as shown on titile
`
/// Using a test's web socket echo server at: https://www.websocket.org/echo.html
[TestClass]
public class WebSocket4Net_UnitTest
{
private readonly string webSocketHost = "wss://echo.websocket.org/";
private readonly string echoCommand = "Hi, Kaazing! How are you?";
After some googling i found a possible solution but it isn't helped me.
I have tried to change target .Net framework for 4.6.2 also but got the same.
If to try with ws uri (webSocketHost = "ws://echo.websocket.org/") it will work. . I'm assumpting it may be related with some of TLS issue? Can you help.
The text was updated successfully, but these errors were encountered: