如何让它工作:
using (var ws = new WebSocket("wss://echo.websocket.org"))
{
ws.OnMessage += (sender, e) =>
Console.WriteLine("RESPONSE: " + e.Data);
ws.Connect();
ws.Send("TEST SEND");
Console.ReadKey(true);
}
错误是:
Authentication failed because the remote party has closed the transport stream.
答案 0 :(得分:0)
如果我使用,似乎可以工作:
using (var ws = new WebSocket("ws://echo.websocket.org"))