Multi Client Support - Needs Update Post Socket to support Multiple "Clients" not in a single Bus.

This commit is contained in:
2026-03-20 22:48:04 -04:00
parent 44fa9a8bb2
commit 2dfc898e8a
4 changed files with 164 additions and 43 deletions

View File

@@ -1,36 +1,40 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RelayClient.MainPage">
<ContentPage
x:Class="RelayClient.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Relay Client">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a submarine number ten" />
<Grid RowDefinitions="Auto,*,Auto" Padding="12" RowSpacing="10">
<Label
Text="Hello, World!"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Border Grid.Row="0" StrokeThickness="1" Padding="10">
<VerticalStackLayout Spacing="4">
<Label x:Name="UserLabel"
Text="Logged in as: Unknown"
FontAttributes="Bold"
FontSize="18" />
<Label Text="#general"
FontSize="14" />
</VerticalStackLayout>
</Border>
<Label
Text="Welcome to &#10;.NET Multi-platform App UI"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
<Border Grid.Row="1" StrokeThickness="1" Padding="10">
<ScrollView x:Name="MessagesScrollView">
<VerticalStackLayout x:Name="MessagesLayout" Spacing="8" />
</ScrollView>
</Border>
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
<Grid Grid.Row="2" ColumnDefinitions="*,Auto" ColumnSpacing="10">
<Entry x:Name="MessageEntry"
Grid.Column="0"
Placeholder="Type a message..."
ReturnType="Send"
Completed="MessageEntry_OnCompleted" />
</ContentPage>
<Button Grid.Column="1"
Text="Send"
Clicked="SendButton_OnClicked" />
</Grid>
</Grid>
</ContentPage>