Event sequencesĪll events are received from the socket as a sequence of TL-serialized Updates objects, which might be optionally gzip-compressed in the same way as responses to queries.Įach Updates object may contain single or multiple Update objects, representing different events happening. ![]() So to start receiving updates the client needs to init connection and call API method, e.g. Update events are sent to an authorized user into the last active connection (except for connections needed for downloading / uploading files). To eliminate the need for the client itself to periodically download these events, there is an update delivery mechanism in which the server sends the user notifications over one of its available connections with the client. ![]() ![]() When a client is being actively used, events will occur that affect the current user and that they must learn about as soon as possible, e.g.
0 Comments
Leave a Reply. |