M
M
mozart13372016-08-30 02:33:45
Socket.io
mozart1337, 2016-08-30 02:33:45

How not to lose events when connecting to websocket?

Generally a subject. The page is first loaded using php, and then it connects to the websocket server to receive updates. Imagine that the data is critical. And you need to get them in sequence without the possibility of skipping. And between the page load and the websocket connection, there is a time during which a new event is possible that will be missed. There are some ideas for event logging, but I find them resource-intensive. What comes to your mind?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-08-30
@AMar4enko

Event logging and marker of the last received event. Then you are guaranteed not to miss a single one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question