@sfsameer just sent to you.. the code ofcourse not clear... it is a lot salty and 3 months old too... so i will have to remember things too.. if you ask me anything
Email received, We looked into your code and below are some notes :
1- You are trying to achieve a peer to peer connection which is 100% not TVA technology, the TVA was to built to have a central server that sends/receives multiple connections from multiple clients at the same time (many to many) through web sockets and SQL database, and in your case you are trying to achieve peer to peer connection (one to one) without having MS SQL nor central middle ware server.
2- in many cases your code will fail because you are over using the web sockets for example you are sending too many parameters in a single key stroke (device id, text, iss, isrel, ismwdir, isscroll, etc...) i would recommend sending these commands separately and only when they are needed to be sent.
3- Your solution is a local solution and not a public solution, meaning you can only connect using local connection, and if you want to make it public then you will need to open the ports in the router and firewall, etc.. which is not TVA concept.
There are too many notes tbh, So just make sure to make your code cleaner by using less parameters and less over using the web sockets.
*Regarding the Peer-To-Peer connection, we have already released a project (VNC Alternative) which is based on VNC technology meaning there is no need for a central server or MS SQL Database . The connection will be established by each instance which is really secure and a lot faster, also the Screen capture is 1080p.
Hello everyone :) *Stating off by thanking @Erel for making this possible for every single one of us ♥ We were requested numerous times to create VNC server & client in B4X technology, so here we are :) In exactly 2 weeks the project will be ready and released (17-05-2021 11:00 PM GMT 3+)...
www.b4x.com
Thank you,
Saif