ArminKH
Well-Known Member
Hi
2Days ago i use Jwebsocketclient lib on b4j and i Create a simple comunication between b4a and b4j which that use a timer on server side and send the server's time to show in label on b4a.
Every thing is okay but as i said on other threads i want to know my message(on this sample is server's time)delivered to client or not.then as @Erel said i use jNetwork lib and AsyncStreamObject to solve this problem
But now i have an other problem again
When i send server's time to client by using JwebSocketClient every thing is okay but when i send server's time to b4a by using JNetwork then i see 2 min after b4j started my server's time value on client side updated after 2 or 3 seconds
Note.my timer's interval is 1000 on server side and my connection is between b4a and local host.so b4a is always connected to b4j
I think by using jNetwork server's cpu or ram usage is higher
Is this wrong?
Note.this problem happen when i connect 2 device at the same time to my server
But after 2 or 3 min messages delivered with a bit delay
Please help me
I like JwebSocketClient but that is limited because then we cant to use AsyncStreamObject
Thanx
2Days ago i use Jwebsocketclient lib on b4j and i Create a simple comunication between b4a and b4j which that use a timer on server side and send the server's time to show in label on b4a.
Every thing is okay but as i said on other threads i want to know my message(on this sample is server's time)delivered to client or not.then as @Erel said i use jNetwork lib and AsyncStreamObject to solve this problem
But now i have an other problem again
When i send server's time to client by using JwebSocketClient every thing is okay but when i send server's time to b4a by using JNetwork then i see 2 min after b4j started my server's time value on client side updated after 2 or 3 seconds
Note.my timer's interval is 1000 on server side and my connection is between b4a and local host.so b4a is always connected to b4j
I think by using jNetwork server's cpu or ram usage is higher
Is this wrong?
Note.this problem happen when i connect 2 device at the same time to my server
But after 2 or 3 min messages delivered with a bit delay
Please help me
I like JwebSocketClient but that is limited because then we cant to use AsyncStreamObject
Thanx