TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Junaid Shahid
318
5.8k
132.5k
Xamarin SignalR Connectivity with ASP.NET Core SignalR Hub
Sep 1 2019 11:42 AM
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);
}
}
}
I'm running the SignalR Hub in my local IIS. Web client working fine, Xamrin client not establishing connection.
Reply
Answers (
11
)
MVC .NET & Web API
how to pass data in DatagridView from Form1 to Form2 ?