Client Code Done - Needs Bug Fixing

This commit is contained in:
2026-04-26 00:06:49 -04:00
parent a52ae2f4a4
commit 92c432cd49
7 changed files with 548 additions and 504 deletions

View File

@@ -590,16 +590,9 @@ public partial class MainPage : ContentPage
var jsArg = JsonSerializer.Serialize(rawJson);
await hybridWebView.EvaluateJavaScriptAsync($@"
window.HybridWebView.SendRawMessage('JS dispatch wrapper hit');
const fn = window.handleRtcSignal || window.dispatchRtcSignal;
if (!fn) {{
window.HybridWebView.SendRawMessage('No RTC signal handler found on window');
}} else {{
window.HybridWebView.SendRawMessage('Calling RTC signal handler');
fn({jsArg});
}}
");
await hybridWebView.EvaluateJavaScriptAsync(
$"window.RelaySocket.receiveRtcSignal({jsArg})"
);
SafeSendRawToWebView("RTC signal dispatched to JS");
}