I need to be able to send data to the server several times, but this is not possible because the stream is closed and does not allow sending data.
How can I manage the stream so that it closes?
Here's an example of code that I want to achieve
B4X:
Sub Handle(req As ServletRequest, resp As ServletResponse)
for i = 0 to 10
dim myObject as CMyObject
myObject.inizialize
myObject.calulate(params...)
SendObject(myObject, resp.OutputStream)
next
End Sub
hello Erel,
thanks for the reply
I know just the web ... socket can also be used without webpages? or to exchange data between the server and the app B4J B4A?
there is an example to exchange data between the two systems?