Android Question Socket Library

I am developing an Android application using B4A, and my goal is to implement a real-time chat feature. My approach is to use Sockets for all application communications, including user registration and login processes, as well as the main chat section, to create a completely real-time experience. For the server side, I plan to use JavaScript, potentially Node.js, along with a WebSocket library like ws or Socket.IO. Currently, I am looking for the best and most efficient library in B4A to manage Socket connections. What library or solution do you recommend?
 
OkHttpUtils2 for http requests. Socket from Network library for raw sockets. WebSocket library for web sockets.
Using raw sockets will not be faster than other options but will take much more time to develop and will be less reliable.
You mean you're saying I should use WebSockets for the real-time functionality?
 
Upvote 1
Top