public async Task StartConnection() { _clientChannel = new JsonClientChannel(); var clientServerUrl = "localhost:3314/"; var _ = Task.Run(async() => { await _clientChannel.StartGetWebSocket(clientServerUrl); }); await TriggerWebSocketRequest("https://localhost:44313/api/Trigger/startRemoteTransaction/", clientServerUrl); }