True, I guess my question was messy..
But specifically, there is an implementation of AsyncStreams Prefix mode in JS/jQuery? Something like the C# example..
I've been tryin', so far what I've..
Dim dataForm As dataEnviar
dataForm.Initialize
dataForm.action = "login_user"
Private mDados As Map : mDados.Initialize
mDados.Put("loginUser",edLoginLogin.Text)
mDados.Put("passwordUser",edPasswordLogin.Text)
dataForm.dados = mDados
CallSub2(Starter, "SendData", ser.ConvertObjectToBytes(dataForm))
Then it looks like
* Service (starter) Create *
* Service (starter) Start *
Conectado: false
* Activity (main) Create, isFirst = true *
* Activity (main) Resume *
Conectado: true
[Image1=[B@664d90f, Image2=[B@3ad2d9c, IsInitialized=true
, action=login_user, dados=(MyMap) {loginUser=popo, passwordUser=popo}]
And web...
ava.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol.
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:220)
at java.lang.Thread.run(Thread.java:748)
java.lang.RuntimeException: Message size too large. Prefix mode can only work if both sides of the connection follow the 'prefix' protocol.
at anywheresoftware.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:220)
On resume...
I will have an application that opens a socket and listens on it.
I need to communicate via this socket to that application using a javascript running on a browser. So I need to send some data on this socket so that the app which is listening on this socket can take that data, do some stuff and get some more data and put it back on the socket that my javascript needs to read and print it in the browser..
I'm not sure how to continue.
Thanks for the help!