M mauro vicamini Active Member Licensed User Longtime User Feb 11, 2020 #1 Hi Evreyone! I'd like to know if the following code it's syncronous or asyncronous (where 'ws' is a websocket): B4X: Copy ws.RunFunction("xxxxx", Null) ws.Flush More exactly if an hight latency of the connection or a low speed of the client could have a reflection on the execution time of the above server script. Thanks for the attention.
Hi Evreyone! I'd like to know if the following code it's syncronous or asyncronous (where 'ws' is a websocket): B4X: Copy ws.RunFunction("xxxxx", Null) ws.Flush More exactly if an hight latency of the connection or a low speed of the client could have a reflection on the execution time of the above server script. Thanks for the attention.
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2020 #2 It is asynchronous. The cached output is moved to a queue which is processed asynchronously. The queue order is managed and predictable. Upvote 0
It is asynchronous. The cached output is moved to a queue which is processed asynchronously. The queue order is managed and predictable.
M mauro vicamini Active Member Licensed User Longtime User Feb 12, 2020 #3 Thanks Erel for your replay! There could be some reason why sometimes a client could not recive a call to the function specified in the RunFunction ? It seems to happen some times without a disconnection. It happens also that recive it with an extreme delay (also 10 seconds). Upvote 0
Thanks Erel for your replay! There could be some reason why sometimes a client could not recive a call to the function specified in the RunFunction ? It seems to happen some times without a disconnection. It happens also that recive it with an extreme delay (also 10 seconds).
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2020 #4 Sounds like a network issue. Upvote 0