Websockets sharp Websockets Server on unity

Hello , i am trying to host a websockets server in unity using websocket-shard lib . I’ve got a problem becouse i cant connect to my server any way and always get an error : WebSocket closed with reason: An exception has occurred while connecting. I tried everything. . I think it can be a problems with some ssl configuration but i am set everythhing to none, same as server security and it didnt work too .Please help me , its a piece of my code :

Server :

void Awake ()
{
wssv = new WebsocketServer( “ws://127.0.0.1:777”);
//wssv.AuthenticationSchemes = WebSocketSharp.Net.AuthenticationSchemes.Basic;
//wssv.AddWebSocketService (“/Echo”);
wssv.SslConfiguration.EnabledSslProtocols = System.Security.Authentication.SslProtocols.None;
wssv.SslConfiguration.CheckCertificateRevocation = false;
wssv.SslConfiguration.ClientCertificateRequired = false;
wssv.AuthenticationSchemes = WebSocketSharp.Net.AuthenticationSchemes.None;

wssv.Start ();

Client :
IEnumerator Start ()
{
yield return new WaitForSeconds (2);

Debug.Log (“started”);

ws = new WebSocket (“127.0.0.1:777”);
ws.SslConfiguration.EnabledSslProtocols = System.Security.Authentication.SslProtocols.None;

//ws.SetCredentials (“”, “”, false);
ws.OnOpen += OnOpenHandler;
ws.OnMessage += OnMessageHandler;
ws.OnClose += OnCloseHandler;

ws.Connect();
}

Try this ws://127.0.0.1:777/socket.io/?EIO=3&transport=websocket.
I don’t know what is it, but worked for me.