android-js / androidjs

Platform to build android app using node js
MIT License
465 stars 110 forks source link

Can I use nodejs's net.socket sockets or MUST I use socket.io sockets for tcp traffic #131

Open ajuga2 opened 4 years ago

ajuga2 commented 4 years ago

I have a nodejs utility (lets call it mytcpapp.js) running on windows using nodejs net.socket for non-http tcp traffic. Can i use net.socket sockets or must I somehow rewrite the application using socket.io sockets?

Chhekur commented 4 years ago

It'll work.

All the npm package works on Android JS unless package isn't hardware dependent.

tarunv98 commented 4 years ago

You can use either of them. But my preferred choice will always be net.socket ✌️