Client Optimization
Server Salt
An int 64 is added to each message to optimization purposes, called Server Salt. Its lifespan is considered one hour by River team, which the server will not accept the message out of this period and return an error for this invalid message. Also, a safety margin of about two minutes is estimated to accept a message by the server.
The SystemSalts method is defined that fetches a list of the salts in advance. In addition, the start time and duration are designated for each salt which is shown below:
SystemSalts
{
Salts int64 array
StartsFrom int64
Duration int64
}