Android Builder & ESP8266

How keep in contact with an ESP 8266 (Arduino ) Server , via Web and Socket Client components ?
In MIT AI2 those two had a different usage , and it worked fine : someone has a short info on how to use here in A B ?

In App Inventor (MIT AI2), the Web component is used for HTTP requests, while the WebSocket component enables real-time communication. In Android Builder , the approach should be similar. You would use the Web component for REST API calls to the ESP8266 server and the WebSocket component for continuous real-time data exchange. Are you facing a specific issue with the setup?