question

GauravMantri-3502 avatar image
0 Votes"
GauravMantri-3502 asked ·

Azure SignalR Service/Azure WebApp (NodeJS) Integration

I have a NodeJS application that is hosted in an Azure WebApp. I am interested in integrating Azure SignalR Service with this WebApp. I am wondering if it is possible to do so?

All the documentation/samples I have seen talk about integrating Azure SignalR Service with a WebApp running .Net Core.

Thanks

azure-webappsazure-signalr-service
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ·

It is possible. The documentation you're looking for is https://docs.microsoft.com/en-us/aspnet/core/signalr/javascript-client?view=aspnetcore-3.1. You can add @microsoft/signalr npm package or use cloudfare cdn. There's sample code in the code.

EDIT: I'm afraid this is not possible it is not possible to run Azure SignalR Service inside a NodeJS server app.

· 5 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ryanchill Thanks for replying.

The link you mentioned has the server-side code written in ASP.Net Core. What I am looking for integrating SignalR Service where the server-side code is written in NodeJS.

Is that possible?

0 Votes 0 ·

You're correct @GauravMantri-3502. My mistake for that. I didn't find an official library for using SignalR in a nodejs server implementation but you can use SignalR in a serverless manner by hosting your javascript code in an Azure Function. Take a look at https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-azure-functions-javascript.

0 Votes 0 ·

Thanks @ryanchill. I also saw that but sadly I am not looking for an Azure Function. We have a WebApp written in NodeJS and would like to integrate Azure SignalR Service with that. I am looking for a yes/no answer at the moment.

1 Vote 1 ·
Show more comments