Azure Mobile Services with Websocket - node.js

I would like to use websocket to notify a remote website whenever a table insert is triggered on my Azure mobile services.
Right now I was able to successfully send GCM notification to registered device using
push.gcm.send
in my insert script.
If i want to achieve aforementioned requirement, what are the required steps?
Setup a Node.js server, call node.js server from insert script, then node.js server use websocket to connect with remote website?
Please kindly point me to the right direction.
thanks!

One option is to use Socket.IO with Azure Mobile Services: https://azure.microsoft.com/en-us/blog/how-to-use-socket-io-with-azure-mobile-service-node-backend/
The comment posted by #gary-liu-msft is also good idea, using queues. He pointed here: https://azure.microsoft.com/en-us/blog/how-to-use-socket-io-with-azure-mobile-service-node-backend/

Related

Best way to get notifications to Angular Client from an Azure hosted Web API

Best way to get notifications to Angular Client from an Azure hosted Web API
I'm creating an app where users can interact on articles. The back-end is asp.net core 2 web api. Front end is nodejs Angular universal app. I've decided to host on azure.
I need to get user notifications from server to the client. So if an user wrote a document and another user liked it, the notification will be sent to the user that wrote it, if the user is running the site.
I know I can achieve this using SignalR or Socket.io, but I was looking for something that azure provides.
Is there anything in azure that I can use, such as Event Hub, Event Grid or NServiceBus where there's already a javascript client that works on the browser, listening on Events?
hi best way notification is azure web job with azure web hook
using web job you can get notification to any devices
for more details please see
enter link description here

Push Notifications RESTful WebApp Angular2 / NodeJS

I'm working on a Restful Web Application. I divide frontend and backend, using Angular2 for the front, and NodeJS for the back.
I would like to use Notifications and push them to specific users.
Sample : If my user decide to subscribe, he could get a Desktop notification when I decide to send one or if my NodeJS serveur want to send a message to a user group.
I have seen a lot of differents modules for the frontend and backend, but I'm a little bit lost.
Architecturally, how should I add this service in my application?
Should I use specific node modules?
You talk about desktop notifications. I guess you want the user to receive its notifications also when the browser or app is closed. In that case you need a Service Worker. A Service Worker is a script that your browser runs in the background, to which the message is being pushed when the browser or app is closed. For a nice introduction to Service Workers, read this. Angular has a Service Workers implemented in production version since 5.0.0. Klik here to read more about it.
At the backend you need a special Node module to send the notification. For instance node-pushserver, but there are many others. This special node module connects to a messaging service whom actual send the message. You can use for instance Google's cross-platform messaging solution Firebase Cloud Messaging (FCM) (the successor of Google Cloud Messaging (GCM)). It can send to Web, iOS and Android.
At the client side you need to register the Service Worker for push notification. Then you will get an endpoint that needs to be stored at the node server side. You send a push request with this endpoint to the messaging service every time.
You can also make use of a paid push notification provider to do the job. Click here for a list of them.
Setting up a WebSocket connection (like socket.io) won't work since it can't stay connected with the Service Worker.
You can use WebSockets for pushing data from the Node.js server. Add the ws package to your server's package.json. Take a look at the BidServer.ts here: https://github.com/Farata/angular2typescript/tree/master/chapter8/http_websocket_samples/server/bids
The Angular client is here: https://github.com/Farata/angular2typescript/tree/master/chapter8/http_websocket_samples/client/app/bids

How can I setup the DocuSign Connect feature while I am developing locally on my laptop

I want to connect docusign locally to my application. How it can be done? How can I setup the DocuSign Connect feature while I am developing locally on my laptop? Please guide me with detailed steps.
You're going to have to have your network forward an externally accessible url to your localbox.
Since Connect is a service hosted at DocuSign and requires a valid endpoint to send data to, and if RequireAcknowledgement is enabled, you'll have to send data back to the service as well.

Best way to broadcast SQL Azure Database for consumption by Ember.js app?

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"

Right Way to Secure MSMQ over HTTP

We're in the middle of migrating an e-commerce integration from using batching to messaging (MSMQ). The e-commerce application itself is hosted on a web server that is not in our domain. The machine processing orders is in the domain in our LAN. The e-commerce app will write to a local MSMQ when an order is placed. Our order processing component should connect to this queue and read messages from it. We are not using WCF for this.
If it were up to me I'd either ditch MSMQ and go with RabbitMQ or put a vpn client on both machines like Hamachi.
I know that MSMQ can use HTTP as a transport via IIS. However I can't seem to find much documentation on how to set this up securely. Is it as simple as turning on one of the authentication options in IIS? I would prefer to use basic auth as we plan on doing this over HTTPS. After that, how to send credentials from the order processing component?
MSMQ supports HTTP and HTTPS. For details, see http://technet.microsoft.com/en-us/library/cc785272(v=ws.10).aspx
Cheers,
Yoel

Resources