In Xamrin SignalR show connection status "disconnected".
- protected override async void OnAppearing()
- {
- base.OnAppearing();
- connection = new HubConnectionBuilder()
- .WithUrl("http://localhost:26523/chat")
- .Build();
- connection.On<string, string>("Send", (name, message) =>
- {
- SignalRResult.Text = name + " - " + message;
- });
- if (connection.State == HubConnectionState.Disconnected)
- {
- try
- {
- await connection.StartAsync(); // Not working
- }
- catch (Exception ex)
- {
- //messagesList.Items.Add(ex.Message);
- }
- }
- }

Vincent Maverick DuranoPosted Sep 1, 2019, 10:53 PM
Junaid ShahidPosted Sep 3, 2019, 1:55 AM
Vincent Maverick DuranoPosted Sep 2, 2019, 2:11 PM
Junaid ShahidPosted Sep 2, 2019, 1:03 AM
Junaid ShahidPosted Sep 1, 2019, 4:40 PM
Junaid ShahidPosted Sep 1, 2019, 1:50 PM
Vincent Maverick DuranoPosted Sep 1, 2019, 1:41 PM
Junaid ShahidPosted Sep 1, 2019, 12:34 PM
Vincent Maverick DuranoPosted Sep 1, 2019, 12:29 PM
Junaid ShahidPosted Sep 1, 2019, 12:21 PM
Vincent Maverick DuranoPosted Sep 1, 2019, 12:09 PM