SignalR | Incredibly simple real-time web | Frontend Framework library

 by   aspnet C# Version: 0.1.0-preview2-35174 License: Apache-2.0

kandi X-RAY | SignalR Summary

kandi X-RAY | SignalR Summary

SignalR is a C# library typically used in User Interface, Frontend Framework applications. SignalR has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

This GitHub project has been archived. Ongoing development on this project can be found in IMPORTANT: This repository hosts code and project management for ASP.NET Core SignalR, for use in ASP.NET Core applications using Microsoft.AspNetCore.App. If you are looking for information on ASP.NET SignalR (used in .NET Framework applications using System.Web and/or Katana), see the repository. ASP.NET Core SignalR is a new library for ASP.NET Core developers that makes it incredibly simple to add real-time web functionality to your applications. What is "real-time web" functionality? It’s the ability to have your server-side code push content to the connected clients as it happens, in real-time. You can watch an introductory presentation here - [ASP.NET Core SignalR: Build 2018] This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home] repo.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SignalR has a medium active ecosystem.
              It has 2396 star(s) with 457 fork(s). There are 246 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 1659 have been closed. On average issues are closed in 31 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of SignalR is 0.1.0-preview2-35174

            kandi-Quality Quality

              SignalR has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              SignalR is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              SignalR releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              SignalR saves you 10351 person hours of effort in developing the same functionality from scratch.
              It has 21043 lines of code, 0 functions and 412 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 SignalR
            Get all kandi verified functions for this library.

            SignalR Key Features

            No Key Features are available at this moment for SignalR.

            SignalR Examples and Code Snippets

            No Code Snippets are available at this moment for SignalR.

            Community Discussions

            QUESTION

            SignalR in Visual Basic
            Asked 2022-Apr-07 at 15:36

            I am trying to setup SignalR using Visual Basic. This is very difficult because every example (literally every example) is in C#. I'm doing an okay job getting through conversions, but I am stumped on this:

            ...

            ANSWER

            Answered 2022-Apr-07 at 15:19

            QUESTION

            SignalR never start on iOS using Xamarin Forms
            Asked 2022-Mar-24 at 14:13

            I'm trying to use SignalR in my Xamarin Forms project. It works perfectly when I'm using Android (device or simulator). But using the same code on iOS, it hangs at await hubConnection.StartAsync();

            I'm using Visual Studio 2022. XAML hot reload is disabled. I've tried adding the System.Memory and System.Buffers IncludeAssets None fix.

            Here's the code

            ...

            ANSWER

            Answered 2022-Mar-24 at 14:13

            Well I had only half of the solution implemented.

            What fixed it for me was adding this to BOTH the common AND iOS projects. Not only the common project.

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

            QUESTION

            SignalR CORS issue with Angular and .NET Core
            Asked 2022-Mar-10 at 08:45

            I know there are a lot of questions and answeres regarding this topic out there, but nothing matched my specific issue.

            I am using the following versions

            • Angular 10.0.14
              • @aspnet/signalr 1.0.27
            • ASP.NET Core 3.1

            VERSION UPDATE:

            • I just replaced @aspnet/signalr 1.0.27 by @microsoft/signalr 5.0.11 -> same issue.

            The SignalR connection works pretty fine until I add an accessTokenFactory in the Angular frontend.

            Frontend

            ...

            ANSWER

            Answered 2021-Oct-19 at 12:06

            Browsers do not support headers for websockets, therefore the bearer token has to be added as query string parameter. We hit the maximum length for URLs due to the length of our bearer token. We could shorten our token or use a reference token, see also: https://github.com/aspnet/SignalR/issues/1266

            Hope this helps others as well.

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

            QUESTION

            C# TPL Dataflow ReceiveAsync() is not completed but task shows completed
            Asked 2022-Mar-07 at 18:43

            I've created TPL Dataflow pipeline as shown below

            ...

            ANSWER

            Answered 2022-Mar-07 at 18:41

            If any one looking for the solution. I think the error happens when multiple threads are working together we solved it in a way instead of returning Task Process we changed the method to.

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

            QUESTION

            .NET 6.0: new Blazor project throws Websocket error
            Asked 2022-Feb-26 at 12:07

            I am running currently a webserver with ASP.NET Core 3.1 and a Blazor project. Recently when upgrading to .NET 6.0 I encountered (even with a blank Blazor project) some problems with a websocket error message in the browser only when deployed on my webserver (see message below).

            Locally (on Windows 11 x64, VS 22 Preview 4) there are no error messages...

            Webserver: Debian 10 x64, .NET 6.0 SDK installed, running on NGINX with websockets enabled (reverse proxy).

            Do I miss out on something or is it a problem with the current state of .NET 6.0 and NGINX? I already tried to access the webpage locally on the debian server and the same error message occurs.

            Help would be much appreciated!

            Greetings!

            Error messages within order:

            ...

            ANSWER

            Answered 2022-Feb-26 at 12:07

            Here is the solution described again, maybe a little bit more convenient:

            To fix this problem, I changed in the site-configuration (/etc/nginx/sites-available) of nginx the following variables:

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

            QUESTION

            Find SignalR client by ID in its context
            Asked 2022-Feb-22 at 07:46

            So I want to send a message to a specific client via SignalR. That client is not Clients.Caller - currently I can only identify it by let's call it "ID", a property in the context: this.Context.Items["ID"]

            So to find a client by its ID, how do I...access all clients or contexts? Or should I save this ID in a different way? This is not the connection ID, it is an ID that maps to something in the database.

            Basically I'd like to go Clients.Single(c => c.Items["ID"] == specificId).SendMessage(msg);

            ...

            ANSWER

            Answered 2021-Dec-14 at 11:34

            You can send the ID down to the clients using context.Clients.User(...) or context.Clients.All(). Then in JavaScript, read the ID and compare it to what's on the page. If it's a match, carry out some action; else ignore.

            As an example, let's say your app's processing a specific record on an edit screen. The record ID is on the page as a form field. You send a SignalR message down from C# with the ID. You do a comparison in JavaScript between the ID and the form field value; if they match, you display a toaster message, perform other processing, etc.

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

            QUESTION

            Getting big data through SignalR - Blazor
            Asked 2022-Feb-21 at 07:30

            I have a component library that uses JS code to generate an image as a base64 string and the image needs to be transposed to C#. The image size is larger than MaximumReceiveMessageSize.

            Can I get the value of the MaximumReceiveMessageSize property in C#? I need a way to correctly split the picture into chunks, or some other way to transfer it.

            My component can be used in a Wasm or Server application. I can't change the value of the MaximumReceiveMessageSize property.

            Thanks

            ...

            ANSWER

            Answered 2022-Feb-21 at 07:30

            Using a stream as described in the Stream from JavaScript to .NET solved my problem.

            From Microsoft docs:

            In JavaScript:

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

            QUESTION

            How do I read class name from config file in SignalR MapHub process
            Asked 2022-Feb-15 at 10:28

            I'm doing message forwarding with SignalR. I want to read my multiple Hub classes from config file as my project will be huge. Below is an example MapHub operation, but I want to read the class name from the config.

            ...

            ANSWER

            Answered 2022-Feb-15 at 10:28

            You have to use Reflection here as HubEndpointRouteBuilderExtensions class doesn't provide a none-generic version of MapHub method. Below code should work for your scenario.

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

            QUESTION

            ReactiveUI ViewModel memory leak
            Asked 2022-Feb-09 at 20:56

            I am having really weird issues with memory leak and I cannot find source after long hours of testing, debugging and trial/error attempts.

            The source of memory leak is reloading object base on push from subject. On which part I load current database values and add it to SourceCache.

            This part is getting the push, to initiate reload

            ...

            ANSWER

            Answered 2022-Feb-09 at 20:56

            The bug was reported and fixed here in library repository: https://github.com/reactiveui/ReactiveUI/issues/3091

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

            QUESTION

            Flutter Push Notification using SignalR
            Asked 2022-Jan-24 at 09:29

            I'm using SignalR for push notifications on my Flutter app and that works ok. I get the message from the backend and show notification using flutter_local_notifications. The problem is that the SignalR service would shut down after some time. How can I make my app stay on in the background? and even start on reboot?

            Here's my code:

            ...

            ANSWER

            Answered 2022-Jan-24 at 09:29
            SignalR problems

            SignalR for Flutter uses web sockets and SSE to receive messages from the SignalR service. If the app was terminated because the user restarted their phone or the OS shut down the app to save battery, these push notifications would not be received by the app.

            To overcome this, app developers (and SignalR) have to use FCM on Android, and APNs on iOS (or FCM which will also use APNs on iOS). All other approaches will be more limited because the operating systems do not allow users to keep background processes running the entire time. This was actually allowed years ago, but the operating systems have made these changes to save the user battery - they enforce that all apps go through the same push notification medium - FCM on Android, APNs on iOS.

            SignalR for Flutter uses neither FCM nor APNs. At it's current state, SignalR is not well suited for Android or iOS - take a look at the comments with people struggling with similar problems to you on How to use signalr in Android.

            Alternative solution

            The simplest / easiest way to get started is to use Firebase Cloud Messaging.

            • On Android, it will be used directly to send messages to devices, and
            • on iOS, FCM will use APNs to reach devices reliably

            Caveat: On Android, there is a more complicated alternative called unifiedpush, but the limitations include showing a notification to the user at all times to handle background notifications.

            My analysis: This is all done based on my quick investigation by reading the pubspec.yaml, the GitHub issues on the original repo, the SignalR documentation, and some experience implementing Push Notifications for Flutter.

            Disclosure: I just released a push notification library 2 days ago called push which would be well suited to these types of Push Notification packages making the transformation to using FCM on Android and APNs on iOS. However, as an app developer, in most cases, you should use firebase_messaging, not push.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install SignalR

            You can download it from GitHub.

            Support

            Documentation for ASP.NET Core SignalR can be found in the [Real-time Apps](https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction?view=aspnetcore-2.1) section of the ASP.NET Core Documentation site.
            Find more information at:

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

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/aspnet/SignalR.git

          • CLI

            gh repo clone aspnet/SignalR

          • sshUrl

            git@github.com:aspnet/SignalR.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link