Answer the question
In order to leave comments, you need to log in
How to turn application into http-server?
Hello!
The task is: you need to send a command from the server to the application (launched on the phone), the application must do it (for example, send SMS) and send a response to the server. The speed should be high, so all sorts of things like firebase are superfluous, and the phone is in the same LAN with the server.
I see 2 ways:
- Application as a client: the application is launched - a WebSocket connection is made to the server, through which the server sends commands.
- Application as a server: the application receives the rest of the request and returns the response.
In your opinion and experience, which option is preferable? And a common question for both options is how to ensure that the application works unambiguously on the phone?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question