Ola
Q1.
In your example, BrowserAbout, you have called?
and in ServerAbout, we have
Just to be clear. To send stuff from the server to the browser, one always have to use a Future. To process that Future one has to use a BANanoPromise?
Q2. So If I want to get stuff from the server I always have to pull them and JSON and push up JSON?
TheMash
Q1.
In your example, BrowserAbout, you have called?
B4X:
Dim prom As BANanoPromise = ws.RunFunctionWithResult("AddOnTheServer", Array(3 , 6))
prom.Then(value)
Log("SERVER says sum of 3+6=" & value)
prom.end
and in ServerAbout, we have
B4X:
Dim fut As Future = ws.RunFunctionWithResult("AddInTheBrowser", Array(20, 30))
ws.Flush
Just to be clear. To send stuff from the server to the browser, one always have to use a Future. To process that Future one has to use a BANanoPromise?
Q2. So If I want to get stuff from the server I always have to pull them and JSON and push up JSON?
TheMash