Which is the better way to build real-time applications using Angular.js and Node.js?

后端 未结 5 1493
借酒劲吻你
借酒劲吻你 2020-12-29 13:36

I\'m beginner in Angular.js and Node.js, but I\'ve realized that there are two possible ways to make real-time applications. The first is using Socket.io and the other is us

5条回答
  •  时光说笑
    2020-12-29 13:52

    It's better to use Socket.io in your case.

    Because you seem to do lots of interaction with the backend.If it's like that instead of querying the api in intervals just use Socket.io.

    Using socket will reduce the work on you both back end and client side and also will make it much more easier to control your event based stuff.

提交回复
热议问题