Giter VIP home page Giter VIP logo

Comments (2)

galvesribeiro avatar galvesribeiro commented on May 24, 2024

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.

soundariyaa avatar soundariyaa commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.