question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blazor SignalR Client

See original GitHub issue

Same Code working on Blazor Server side for a simple Chat, doenst work on Blazor Client side. Just calling the “app” getting several errors in F12 command like

WASM: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.DllNotFoundException: libc assembly:<unknown assembly> type:<unknown type> member:(null)

as I can not debug (also shift alt D in chrome) my guess is happens here protected override async Task OnInitAsync() { connection = new HubConnectionBuilder() .WithUrl(“https://signalrdemo2220190428112854.azurewebsites.net/ChatDemoHub”) .Build(); await connection.StartAsync();

<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview4-19216-03" /> <PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview4-19216-03" PrivateAssets="all" /> <PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview4-19216-03" PrivateAssets="all" /> <PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.0.0-preview4-19216-03" />

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
danroth27commented, May 23, 2019

@mattferderer No trouble at all 😄

WebSockets support has already been implemented for mono.wasm: https://github.com/mono/mono/issues/9567.

To enable this support in Blazor we need to move to the mono bindings. We’ve been tracking that internally, but I just filed https://github.com/aspnet/AspNetCore/issues/10489 to track it on GitHub.

1reaction
danroth27commented, Dec 2, 2019

We’re getting close. There’s still some work to do on the .NET runtime side to make sure all the .NET Standard APIs used by the .NET SignalR client are supported and functioning appropriately. This should happen as part of the upcoming Blazor WebAssembly release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use ASP.NET Core SignalR with Blazor
In this article · Create a Blazor app · Add the SignalR client library · Add a SignalR hub · Add SignalR services...
Read more >
Refresh Data in Real Time with Blazor WebAssembly and ...
Blazor Server uses SignalR to communicate between the server and the client via the WebSockets protocol. It allows for full .
Read more >
Using Blazor WebAssembly, SignalR and C# 9 to create ...
In this tutorial, we will put Blazor WebAssembly under test by building a ... NET Core web API and SignalR hubs that the...
Read more >
Let's Learn Blazor: Blazor Server with SignalR
blazor.server.js allows the app to establish a SignalR connection over the network to handle UI updates and event forwarding between the Blazor ......
Read more >
How do you build Blazor apps with SignalR?
Create a Blazor app and add the package Blazor.Extensions.SignalR to the client. Then write the code to connect the Hub and event handler...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found