I'm aware that the library #microsoft/signalr can be used on the client-side to connect with a SignalR hub, but is it possible to integrate SignalR in a node server? We're trying to implement a chat system using SignalR with React Native as the client but we can't figure out how to integrate it into Node or is it just meant to be used with the ASP.NET server?
The SignalR server must be hosted in a .NET application, because it is implemented as a .NET Class Library. SignalR clients are available for many languages/platforms, including JavaScript and Node.
If you want to do real time communications or two way communication using Node as the server, you'll need to look into other options.
Related
I have two apis, the firstone is the main api is in .net core, the second one is only for some features. I need to comunicate the first one with the second one and vice versa. Both apis are deployed in Azure. Do I have to deploy this apis on some kind of network ? Or it is not a problem if bot are publics?
Edit: Do you recommend deploy it in kubernetes? And comunicate both like services?
Let's say, I have an enterprise application runs on Azure Web App Service. Among 100+ pages, I have 3-5 pages needs to be served real-time. to benefit from real-time capabilities of Azure SignalR Service, I want to make clients land on my SignalR application (which runs on RignalR Service). But I couldn't find any related example-article about it. How can I invoke a Hub method outside of the code? Any other approach to solve my problem is more than welcome. My main concern here is the performance of real-time pages.
If you have an ASP.NET Core SignalR Server (i.e. you have classes deriving from Hub in your application), you can't directly send messages to clients via the Azure SignalR Service. You'd have to provide an API in your ASP.NET Core application that does that.
Azure SignalR does also support a "serverless" mode in which you don't have a Hub on the server at all. In that model, clients connect directly to the service (instead of first connecting to your app) and then you can send messages to those clients using the REST API. This is a relatively new scenario so there isn't a lot of documentation. There are some blog posts and videos online on the subject, but not a lot of documentation.
If you already have an ASP.NET Core app, I'd suggest doing this by adding a REST API to your own application that allows other services in your application to send messages by calling this API. In the implementation of this API, you can use IHubContext<T> to send the messages.
how to refresh local data automatically when server data changes in azure mobile app(android).Right now i m using a timer that refresh my server request but this approach is not satisfactory as my app keep on sending requests to azure.What is the best approach for doing this?I also tried to understand one of the answer in stack overflow based on Exponential Back Off Delay Based but failed to understand.Kindly just guide me on this
For communicating server-side updates to client apps, use SignalR.
Here's some guidance on using it with Azure Mobile Apps: Real-time with ASP.NET SignalR and Azure Mobile .NET Backend
We just released an update for Azure Mobile Services .NET backend which enables you to use ASP.NET SignalR for real-time, bi-directional communications with your mobile applications. SignalR will use WebSockets under the covers when it's available, and fallback to other “techniques” (i.e. HTTP hacks 😉) when it isn't. Regardless of the mode, your application code stays the same.
If I build a website that has a built-in SignalR hub (single IIS site), such as http://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc,
can I use other apps to connect to it, such as WPF or whatnot. My impression is that I would need a standalone SignalR hub that runs on its own, on a different port.
You can use the same host. If you use windows auth you need to setup the credentials on the WPF client.
You can look at my WPF demo that uses Caliburn Micro for MVVM and my SignalR library for a MVVM/Aggregation friendly way of using SignalR
https://github.com/AndersMalmgren/SignalR.EventAggregatorProxy/tree/master/SignalR.EventAggregatorProxy.Demo.DotNet
I am working with a team to create an MS Azure hosted web app following the ember.js framework. This app needs to interface with a sql Azure database, and I am wondering what the best way to broadcast that database would be. This needs to be a secured connection.
On the client side, we are looking to use Ember Data to consume JSON output from the Database, but I am confused as to how to make the connection on the server side. Should I be creating a RESTful web service using node.js or Windows Azure Mobile Services?
Yes. You will need to expose data via a HTTP server. Ember.js is totally agnostic about server solutions so this can be written in any language you want. If you are writing this server from scratch and can match the semantics of the sample Adapter included with ember-data you'll find it works pretty much "out of the box"