Comments (2)
Hello, thanks for the info.
However, I think you are on the wrong place here. You are using the official Microsoft Client for SignalR. That is only available on Blazor Server Side.
This repo here however, only focus on the client side.
Thank you! I'm closing the issue.
from signalr.
Thanks for your replay .I have just installed "SignalR.Client" namespace but I never used that namespace anywhere in my project.I suppose to uninstall it. Actually I have created Hub in Azure function serverless application.Here In Blazor application ,sending request to get a connection info from Azure serverless Application and pass the "SignalR Service URL" to establish the conncetion .
Here is code where I used for Hub creation :
public static class SignalRInfo
{
[FunctionName("SignalRInfo")]
public static IActionResult Run(
[HttpTrigger(AuthorizationLevel.Anonymous)] HttpRequest req,
[SignalRConnectionInfo(HubName = "ViewLogger")] SignalRConnectionInfo connectionInfo,
ILogger log)
{
return new OkObjectResult(connectionInfo);
}
}
Function for sending Message to SignalR:
public static void Run([QueueTrigger("logqueue")]string myQueueItem,
[Table("LogJournal"), StorageAccount("AzureWebJobsStorage")] ICollector<Models.LogItem> items,
[SignalR(HubName = "ViewLogger")] IAsyncCollector signalRMessage,
ILogger log)
This is output for azure serverless Apllication:
Http Functions:
SignalRInfo: http://localhost:7071/api/SignalRInfo
WriteLog: [GET,POST] http://localhost:7071/api/WriteLog
[14/08/2019 14:29:18] Host lock lease acquired by instance ID '0000000000000000000000000A68584A'.
from signalr.
Related Issues (20)
- Serverside example HOT 3
- JsRuntime on Server side HOT 1
- Update to preview 8 HOT 1
- .net 3 preview 9 build error HOT 3
- Serialization Issue / Configuration HOT 6
- Cannot deserialize decimal with MessagePack and System.Text.Json HOT 1
- HubConnectionBuilder throws NullReferenceException HOT 6
- Support automatic reconnects and State on HubConnection HOT 4
- Non-generic overload of the On method? HOT 3
- Server Hub receives ValueTuple with default values HOT 2
- Why is this needed? HOT 1
- Preview 2 HOT 1
- Why JWT is being send in a query string parameter instead of its proper header? HOT 1
- Can't serialize poco class HOT 5
- Upgrading Blazor WebAssembly to 3.1.0-preview4.19579.2 leads to an error: Could not find 'BlazorExtensions' in 'window'. HOT 10
- Upgrading to .NET Standard 2.1 in the Blazor client-side project causes a runtime error HOT 1
- This might be obsolete now HOT 1
- examples needed
- How can we add support for Additional languages?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from signalr.