azure-signalr | Azure SignalR Service SDK for .NET | Azure library

 by   Azure C# Version: v1.21.3 License: MIT

kandi X-RAY | azure-signalr Summary

kandi X-RAY | azure-signalr Summary

azure-signalr is a C# library typically used in Cloud, Azure applications. azure-signalr has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Azure SignalR Service SDK for .NET helps you to instantly build Azure applications with real-time messaging functionality, taking advantage of scalable cloud computing resources. This repository contains the open source subset of the .NET SDK.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              azure-signalr has a low active ecosystem.
              It has 340 star(s) with 91 fork(s). There are 27 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 118 open issues and 406 have been closed. On average issues are closed in 148 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of azure-signalr is v1.21.3

            kandi-Quality Quality

              azure-signalr has 0 bugs and 0 code smells.

            kandi-Security Security

              azure-signalr has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              azure-signalr code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              azure-signalr is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              azure-signalr releases are available to install and integrate.
              Installation instructions are available. Examples and code snippets are not available.
              azure-signalr saves you 5927 person hours of effort in developing the same functionality from scratch.
              It has 12457 lines of code, 0 functions and 521 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-signalr
            Get all kandi verified functions for this library.

            azure-signalr Key Features

            No Key Features are available at this moment for azure-signalr.

            azure-signalr Examples and Code Snippets

            No Code Snippets are available at this moment for azure-signalr.

            Community Discussions

            QUESTION

            How to create Azure signalR service as premium
            Asked 2022-Mar-24 at 10:58

            I can't see any documentation around creating Premium tier Azure SignalR Service. Has any one managed to deploy one? I don't see any premium options in the portal nor via bicep. https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-howto-scale-autoscale

            if the name has only two options, Premium in tier, doesn't make sense, have tried though with no luck . Any suggestions?

            ...

            ANSWER

            Answered 2022-Mar-24 at 10:58

            EDIT: Premium Tier is now public to all

            Premium tier has not public released yet. We're preparing for that. It's expected to be public in March.

            Source https://stackoverflow.com/questions/71174587

            QUESTION

            Azure Function to SignalR (Serverless) to Web app
            Asked 2022-Jan-17 at 01:56

            So I am rather stuck on this. We have been using "Default" SignalR with our Web apps for ages and all is fine.

            We now want to add an Azure Function which requires SignalR to be Serverless. I can easily get SignalR and the Azure function to play ball.

            However, I can not get the Web App to talk to SignalR as it says

            "Critical: Service returned handshake error: Azure SignalR Service is in serverless mode, server connection is not allowed.. Id: fe6a4f57-6293-4b6f-bdec-9040ff60aef5"

            Ok so looking at other tutorials like :

            https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-dotnet-core https://softchris.github.io/pages/dotnet-signalr.html#configure-signalr

            You can do it in Javascript

            ...

            ANSWER

            Answered 2022-Jan-17 at 01:56

            What's the role of your Azure Function? Do you still have Hub logics defined in your Web Apps?

            When in Default mode, your Web App handles the lifetime of the clients, the SignalR service acts like a proxy that it routes all the client traffics through server connections to the Web App, while in Serverless mode, the SignalR service handles the lifetime of the clients. This article describes the differences in detail.

            If you still have your Web App handle the clients in the Hub class, and Azure Function is simply used to send messages to these clients, please use Default mode.

            Source https://stackoverflow.com/questions/70592774

            QUESTION

            Can .Net Client communicate with azure signalR service?
            Asked 2021-Nov-20 at 22:12

            I am new to using Azure signalR service and I am kinda confused about something.

            The thing is I am using a .Net 4.8 client and a javascript client with a self-hosted hub.

            For the .net client this is the code:

            ...

            ANSWER

            Answered 2021-Nov-20 at 22:12

            So I figured out what was the issue it seems there were a package incompatibility between .net v4.7 and .net v4. I migrated all packages to following :

            • package id="Microsoft.AspNet.SignalR" version="2.4.1" targetFramework="net48"
            • package id="Microsoft.Azure.SignalR.AspNet" version="1.13.0" targetFramework="net48"
            • package id="Microsoft.AspNet.SignalR.Client" version="2.4.2" targetFramework="net48"

            Thank you all for your help.

            Source https://stackoverflow.com/questions/70008274

            QUESTION

            Azure SignalR understanding connection count
            Asked 2021-Jun-29 at 01:14

            I am a bit confused with the Azure SignalR connection count. When I run my MVC.NET on my Visual Studio debug mode, it immediately creates 10 server connections. So, I carefully looked at the documentation (https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-concept-messages-and-connections) and it said that

            By default, each application server starts with five initial connections per hub, and each client has one client connection.

            For example, assume that you have two application servers and you define five hubs in code. The server connection count will be 50: 2 app servers * 5 hubs * 5 connections per hub.

            Well using the formula above, I should only have 5 connections because: 1 app server * 1 hub * 5 connections per hub = 5 connections. I can't understand why my portal showed that I have 10 server connections instead of 5.

            Can anyone help to explain how Azure calculates the server connection?

            Thanks...

            UPDATE

            For those who looking on how to enable Live Trace Tools:

            1. Go to SignalR
            2. Click on the SignalR that you want to trace
            3. Click on Monitoring | Diagnostic Settings
            4. If you haven't configure your log, click on "Configure Log Destination Settings" (Note: I think the cheapest way is to store under your storage account with retention of 1 day).
            5. Tick Enable Live Trace and click Save
            6. Open Live Trace Tool (it should say "Connected" on the top right corner)
            7. Click on Capture
            8. Start your app

            ...

            ANSWER

            Answered 2021-Jun-28 at 15:25

            Go to Diagnostics Settings under Monitoring tab in Azure portal SignalR service. Click on "Open Live Trace Tool" button. Click on Capture in newly opened window. When you run your application, all connections would be shown in Live Trace.

            Source https://stackoverflow.com/questions/68115366

            QUESTION

            Azure function working in local but not after uploading to azure
            Asked 2021-Mar-05 at 05:37

            I'm new with azure functions and azure as whole.

            I'm using azure functions for interacting with a SignalR service for usage in a xamarin forms app. I borrowed the azure function code from docs.MSDocs on serverless signalR service

            Worked well in local (tested the web client provided in the docs, And also a simple console app).

            But when the function was moved to azure. Initially I faced CORS error fixed those and then faced 502. Could not debug or find the root cause. After few hours of browsing found that azure itself provides a template for signalR serverless connection.

            Used the template, configured the app settings with signalR endpoints (I have set the app setting for AzureSignalRConnectionString).

            Still facing 502 error, . How can I get it to work? Or How do I find out the root cause for the failure.

            Negotiate function code:

            index.js

            ...

            ANSWER

            Answered 2021-Mar-05 at 05:37

            SignalR Service needs a URL to access Function App when you're using SignalR Service trigger binding. The URL format: /runtime/webhooks/signalr?code=. Explanation: The Function_App_URL can be found on Function App's Overview page and The API_KEY is generated by Azure Function. You can get the API_KEY from signalr_extension in the App keys blade of Function App.

            And if you are very new to this, here is a step by step article to follow: https://github.com/aspnet/AzureSignalR-samples/tree/master/samples/BidirectionChat

            Source https://stackoverflow.com/questions/66480846

            QUESTION

            SignalR The 'User-Agent' header must be modified using the appropriate property or method
            Asked 2020-Dec-01 at 10:58

            I have C# .NET Framework SignalR Client application & ASP.NET Core 2.1 server. When i trying to start connection to SignalR Hub by WebSockets, i get exception.

            ...

            ANSWER

            Answered 2020-Nov-30 at 12:35

            I believe this should work:

            Source https://stackoverflow.com/questions/65073287

            QUESTION

            can't add header/Access-Control-Allow-Crendentials - python function app
            Asked 2020-Jul-14 at 05:48

            I can get my signalr code to connect + work no problem in my local environment by setting host with web url

            ...

            ANSWER

            Answered 2020-Jul-14 at 05:48

            Yes, there is no way to set it on azure portal. Not only 'Access-Control-Allow-Crendentials', but also many other config settings cannot set by using azure portal when you are based on linux web app.

            To achieve that you want, you can use below cmd in powershell:(It works when you are based on azure web app. azure function is based on web app sandbox, so below cmd also works on function.)

            Source https://stackoverflow.com/questions/62881777

            QUESTION

            SignalR not subscribing inside Angular service
            Asked 2020-Jul-13 at 18:02

            I have my SignalR Angular service hooked up to the backend fine. When I log into my application, I get my access_token. I can also send messages and subscribe to the message I just sent, but I can't subscribe to it via SignalR. If I have two browsers open and I send the message via one browser. The portal signalr service message count goes up by one and the subscribe method from this line

            ...

            ANSWER

            Answered 2020-Jul-13 at 18:02

            I was using code from an answer from a different post I made and I didn't realize the observable answer changed the topic name or whatever. Not sure why the EventEmitter way didn't work, but once I adjusted it to newMessage it started working.

            Source https://stackoverflow.com/questions/62756990

            QUESTION

            What does Proxy mean for Azure SignalR service?
            Asked 2020-Jun-29 at 15:09

            This documentation about Azure SignalR talks about Azure SignalR is a proxy.

            My questions are:

            1. What is meant by Proxy and Backplane?
            2. Is http2 an equivalent technology for SignalR where the real time web can be done with http2?
            ...

            ANSWER

            Answered 2020-Jun-29 at 15:09
            1. The service being a proxy basically means that it manages all of the client connections for you so you don't have to use a backplane to keep track of connected clients and which servers they are currently connected to yourself.

              Let's say that you have an application that you want to scale out by adding more servers to handle an increased number of client connections. The problem with scaling out is that each server only knows about its own client connections. It's unaware of connections to the other servers in the farm. This means that a message that you intend to send to all clients only goes out to the clients that are connected to the particular server that your hub is sending the message from.

              Using a backplane component, each server sends all messages to the backplane instead of sending them directly to its connected clients. The backplane is then responsible for forwarding the messages to the other servers.

            2. HTTP/2 is not a replacement for web sockets and which one you should use depends on your requirements.

            Source https://stackoverflow.com/questions/62623938

            QUESTION

            SQL Trigger (Change Event) to Azure Function
            Asked 2020-Jun-20 at 20:19

            I read in this article that an Azure Function can be triggered by a trigger from CosmosDB. Can the same architecture be achieved with SQL DB? As an example, I add a row to a SQL DB table which will trigger an event which will invoke a Azure Function to run which will invoke a SignalR method.

            ...

            ANSWER

            Answered 2020-Jun-20 at 20:19

            Yes, you can!

            But not directly with Azure Functions. Because there is no SQL Trigger for Azure Functions (yet?)

            So how you can achieve this?

            By the power of Logic Apps!

            There is a built-in SQL Server connector and its triggers. Please see the screenshot below:

            You can either choose when an item is created, or when an item is modified.

            Let's say you wanted an item is created trigger. Next, you need to give the connection string of the database to the connector. Then it will prompt you to select which Table to listen. (In the example below, it will check the "Menus" table every 30 seconds.

            Afterwards, when the condition is matched, you can set up an "Action" with Azure Functions (or any other action you want, such as send an email with Outlook) and pass any parameter you want from the table. In the example above, I chose one of my Azure Functions and chose the HeartBeat function, and passed the IsActive, DateCreated and AvailableTimeTo columns from the "Menus" table.

            Hope it helps 🤞🏼

            Source https://stackoverflow.com/questions/62486431

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install azure-signalr

            Azure SignalR Service is based on ASP.NET Core SignalR framework, and it supports both ASP.NET Core SignalR and ASP.NET SignalR applications. Both support are generally available. Please note that different frameworks require different Azure SignalR SDK, for ASP.NET Core SignalR, it is package Microsoft.Azure.SignalR to install, for ASP.NET SignalR, it is package Microsoft.Azure.SignalR.AspNet.

            Support

            This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link