parameters of a json string for handshaking via
#region Connect public async Task Connect(string uri) { Thread.Sleep(1000); //wait for a sec, so server starts and ready to accept connection.. try { webSocket = new ClientWebSocket(); await webSocket.ConnectAsync(new Uri(uri), CancellationToken.None); } catch (Exception ex) { throw ex; } finally { if (webSocket != null) webSocket.Dispose(); } } #endregion
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)