Client Code Done - Needs Bug Fixing
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user