In order to speed up the exchange of information, I experimented with the examples attached to the project description
In particular, on the Android client project, on Starter service I tried to decrease the refresh time to 0.001
Starter / Service_Create:
Sub Service_Create
ckvs.Initialize(Me, "ckvs", Main.ServerUrl)
ckvs.SetAutoRefresh(Array(Main.user), 0.001)
End Sub
B4J Client:
Public Sub Initialize (Callback As Object, EventName As String, ServerUrl As String)
csu.Initialize
sql.InitializeSQLite(File.DirApp, "db.db", True)
CreateDatabase
url = ServerUrl & "/action"
autoRefreshTimer.Initialize("AutoRefresh", 1000)
mCallback = Callback
mEventName = EventName
HandleQueue
If False Then CallSub(Me, "HandleQueue") 'to avoid obfuscation issues
End Sub
Is it the correct way to increase the performance of data exchange between server and client?
What is the drawback of decreasing this time too much?
And how to increase performance between client and server?
autoRefreshTimer.Initialize("AutoRefresh", 1000) is the correct line?
Not too significant. It means that the clients will be sending "refresh" requests all the time. The clients code will not send multiple requests at a time so it is not too bad.