Android to node.js communication

后端 未结 3 1220
粉色の甜心
粉色の甜心 2020-12-12 21:56

I saw there are a couple of similar threads but i could not find my answer.

I\'m making and android app, an i want to use node as server for real time communication

3条回答
  •  长情又很酷
    2020-12-12 22:11

    Like Raynos said the websocket spec is still a draft(changes). Maybe you could ask Guillermo Rauch(Author socket.io) which draft he is using and find the proper Websocket library. At his github page you can find his email address and try to send him an email(short).

    You could also try to use another transport(long-polling) and implement the spec yourself I guess.

    But in my opinion you should be using Google's c2dm(Big players are already using this and will be very gently to your phone's battery) instead to push updates to phone in realtime. I already have a lot of applications installed that are using c2dm like for example whatsapp(awesome). You could be using notifo's api to simplify your work. Then simply install there android program to receive the desired notifications. There is also a node module(npm) available for you to use (easy :))

提交回复
热议问题