Is it possible to receive an Amazon SNS message on a JS script?

后端 未结 2 1092
傲寒
傲寒 2021-01-01 11:38

I know some options using ruby on rails and/or node.js and PubNuB, a service that has many APIs so you can send/receive notifications between (almost) any platform.

2条回答
  •  清歌不尽
    2021-01-01 12:17

    Use a service worker in your project and set up a Push Notification handler... I created a GCM project and made a little node.js server and it seems to receive messages from SNS... No polling required.

提交回复
热议问题