diff --git a/Worker.cs b/Worker.cs index af8efe8..6835efb 100644 --- a/Worker.cs +++ b/Worker.cs @@ -267,12 +267,19 @@ Task Relay(CancellationToken stoppingToken) bool result = _relayQueue.TryTake(out string message, -1, stoppingToken); if (result && !string.IsNullOrEmpty(message)) { - _logger.LogDebug("Relay message"); bool sendResult = relaySocket.TrySendFrame(message); if (!sendResult) { _logger.LogError("Unable to relay message"); } + + bool receiveResult = relaySocket.TryReceiveFrameString(TimeSpan.FromMilliseconds(500), out string sendReturn); + if (!receiveResult) + { + _logger.LogError("Unable to relay message, no response"); + } + + _logger.LogDebug("Relay message: {return}", sendReturn); } }