A step in the right direction

This commit is contained in:
2026-04-21 01:14:44 -04:00
parent a2608ffab9
commit 4f6bbcf6e2
3 changed files with 76 additions and 31 deletions

View File

@@ -106,7 +106,7 @@ public partial class MainPage : ContentPage
return;
}
SafeSendRawToWebView($"[{_username}] RAW WS DATA: {e.Data}");
// SafeSendRawToWebView($"[{_username}] RAW WS DATA: {e.Data}");
Console.WriteLine($"[{_username}] RAW WS DATA: {e.Data}");
@@ -210,7 +210,7 @@ public partial class MainPage : ContentPage
if (notificationChannelId != _currentChannelId)
return;
SafeSendRawToWebView("RTC notification received: " + notificationType + " for " + notificationChannelId);
// SafeSendRawToWebView("RTC notification received: " + notificationType + " for " + notificationChannelId);
MainThread.BeginInvokeOnMainThread(async () =>
{
@@ -434,7 +434,7 @@ public partial class MainPage : ContentPage
_wsc.Send($"RTC_JOIN_CHANNEL|{_username}|{_currentChannelId}");
SafeSendRawToWebView($"Attempting to join RTC Channel {_currentChannelName} | {_currentChannelId} ");
// SafeSendRawToWebView($"Attempting to join RTC Channel {_currentChannelName} | {_currentChannelId} ");
bool active = await ServerAPI.GetIsChannelActiveAsync(_currentChannelId);
@@ -462,11 +462,12 @@ public partial class MainPage : ContentPage
Username = _username,
SessionDescription = description
};
await ServerAPI.PostOfferAsync(offer);
var response = await ServerAPI.PostOfferAsync(offer);
SafeSendRawToWebView(response.ToString());
}
catch (Exception ex)
{
SafeSendRawToWebView(ex.Message);
SafeSendRawToWebView($"WriteRtcOffer failed: {ex.Message}");
}
}