Hello!
I would like to ask you something about the server events and ws.flush statement.
I have the following code structure:
The Some_Event is a server event called from tablets.
The DoSQL subs, execute some updates or inserts into my database.
At the end of Some_Event, it's definitely not needed the ws.flush...
Is it needed at the end of DoSQLx?
Finally, what is the impact of having a ws.flush at the end of a server event called from devices?
May it causes memory leaks or something else?
I was accidentally having one case like this and I'm not sure if this caused a relatively big memory use from my web server, because I corrected this just yesterday.
Thank you in advance.
I would like to ask you something about the server events and ws.flush statement.
I have the following code structure:
B4X:
Public Sub Some_Event(data As Map)
If data.Get("var") = "0" then
DoSQL1
Else
DoSQL2
End if
End Sub
The DoSQL subs, execute some updates or inserts into my database.
At the end of Some_Event, it's definitely not needed the ws.flush...
Is it needed at the end of DoSQLx?
Finally, what is the impact of having a ws.flush at the end of a server event called from devices?
May it causes memory leaks or something else?
I was accidentally having one case like this and I'm not sure if this caused a relatively big memory use from my web server, because I corrected this just yesterday.
Thank you in advance.