What happens if I use socket.io allover the app? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 12 months ago.
Improve this question
I am writing an android app using Java and for the back-end I chose socket.io in node js.
I just want to ask what happens if I socket.io instead of rest-api?

Using socket.io as the main communication system is not a good choice because the communication system is always open.
now imagine 1000 people want a data trough sockets, it will slowdown your server and sometimes cause server crashes.

Related

Why Do People Try Reconnecting Websockets After It Closes? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm creating a real-time, multiplayer browser game using the ws websocket library in Javascript. I've seen multiple posts talking about the reconnection for their websockets. However, I don't understand why reconnecting the websocket is necessary. Are websocket connections inherently unstable and thus close regularly (~5mins)?
So my questions are, what are the main reasons people implement reconnection into their websockets? And what are the causes of the disconnections?

Android - ask server for new version of app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want my app to check in background if there is a new version of the app on MY server (not play store servers). How is it possible?
I already thought maybe i could send a background request with asynctask to my server and evaluate it with some kind of server logics (javascript?)?
Make an HTTP-Request to your server. The script at the URL it's calling should simply return the number of the new build you made. In the App you will now be able to check the answer, wich contains the build number and compare it to its own build number.
Just have an simple get api for knowing the current version of your app on the server.
then find the version of your app using BuildConfig.VERSION_CODE;
if the version code in your server is greater than this, then there is an update available

Is it a good idea to develop two separate node application for serving webservice and for consuming webservice to render it on browser? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
If we are running two different node instance one of each purpose( webservice engine/data engine and webservice consumer) will it be good or keeping both the purpose in same application will be better ?
Yes it is.
One project is your API, the second project is the access to your API by web.
Maybe in the future you might need a mobile app to connect with the API or maybe the webapp technology becomes obsolete and you might need to replace it for another modern technology, so that you don't have to change your API.

What is the main role of MessageChannel in HTML5 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to know when should I choose this solution.
Is it just for solving cross domain communications on client browser?
Channel Messaging offer two-way and direct communication between browsing contexts. The DOM is not directly exposed with cross-document messaging but at each end there is a port. The data being sent from one port is the input in other and vice-versa. This will be a good article for you. And another article

Implementing webrtc at server side [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is it possible to implement webRTC at server side? ie., I want my browser to connect to a http server(tomcat which runs a java based app to stream a video) using webRTC protocol and get the streem from the server?
I think compiling webRTC api and access it through JNI will help. Any other easy directions to do this?
There is now a server-side implementation of WebRTC in Asterisk that should enable that: https://wiki.asterisk.org/wiki/display/AST/Asterisk+WebRTC+Support
I haven't yet looked into it that much so I can't say for sure that it does what you want.
Take a look at Lynckia's Licode Project. It is however, Node.js serverside.

Categories