A
A
Anton Ulanov2016-07-14 02:50:25
JavaScript
Anton Ulanov, 2016-07-14 02:50:25

How to resume data transfer after loss of internet connection?

Good time of the day. How to continue sending unsent messages to the server after the Internet connection is lost. As an example: there is a chat server, there is a cordova client for android. The client writes writes messages sends them to the chat and suddenly notices that all the messages that he sent were not sent because his Internet fell off. Please tell me how to implement it correctly. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tsepkovsky, 2016-07-21
@Zippovich

webSocket, cache of messages on the client side, so that unsent messages are not lost, and a program that will try to send messages until it sends

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question