fixed spacing and added todo

This commit is contained in:
2026-04-27 14:32:40 -04:00
parent 5b10afcec2
commit 6a650a282b
2 changed files with 7 additions and 7 deletions

View File

@@ -33,7 +33,11 @@ public partial class MainPage : ContentPage
} }
hybridWebView.SetInvokeJavaScriptTarget(this); hybridWebView.SetInvokeJavaScriptTarget(this);
// hybridWebView.SetInvokeJavaScriptTarget(new RtcBridgeService());
//TODO: Need to not have parameters in constructor, protected flags on vars instead of private should make everything accessible
ServerAPI.setupClient(); ServerAPI.setupClient();
_socket = new RelaySocketClient(_username); _socket = new RelaySocketClient(_username);
_rtc = new RtcBridgeService( _rtc = new RtcBridgeService(
@@ -296,7 +300,7 @@ public partial class MainPage : ContentPage
{ {
SwapView(); SwapView();
} }
public Task JoinRtcChannel() public Task JoinRtcChannel()
{ {
return _rtc.JoinRtcChannel(); return _rtc.JoinRtcChannel();

View File

@@ -13,12 +13,8 @@ public sealed class RtcBridgeService
private readonly Func<string?> _getCurrentChannelId; private readonly Func<string?> _getCurrentChannelId;
private readonly Action<string> _sendRawToWebView; private readonly Action<string> _sendRawToWebView;
public RtcBridgeService( public RtcBridgeService(string username, RelaySocketClient socket, HybridWebView hybridWebView,
string username, Func<string?> getCurrentChannelId, Action<string> sendRawToWebView)
RelaySocketClient socket,
HybridWebView hybridWebView,
Func<string?> getCurrentChannelId,
Action<string> sendRawToWebView)
{ {
_username = username; _username = username;
_socket = socket; _socket = socket;