Is it possible to create a TCP client using OutSystems Now?

Is it possible to create a TCP client using OutSystems Now?

  

I have no idea how to create a TCP client using OutSystems Now.

Is there any reference about this?

If it is impossible, I would like to know alternative solution.

Thank you.


App specs are below:

  App Name: TCP Client App

  Platform: Android (OutSystems Now)

  Android version: 6.0 or above

  Requirements:

  1. Establish TCP connection through WiFi
  2. Send a text message to TCP Server
  3. Receive a text message from TCP Server
  4. IP address is static
  5. Port is any vacant port

Hi Michihiko,

out of the box, the platform use web protocols like HTTP for communication, so you don't really have simple access to the lower level stack. For sockets functionality, you will have to rely on Javascript or native plugins. 

There seems to be work on bringing raw TCP/UDP sockets to browsers: https://stackoverflow.com/questions/12407778/connecting-to-tcp-socket-from-browser-using-javascript, https://www.w3.org/TR/tcp-udp-sockets; but the typical approach is to have an intermediary that can convert requests from websockets to sockets, and then use websockets between your client and this intermediary. 

Jorge Martins wrote:

Hi Michihiko,

out of the box, the platform use web protocols like HTTP for communication, so you don't really have simple access to the lower level stack. For sockets functionality, you will have to rely on Javascript or native plugins. 

There seems to be work on bringing raw TCP/UDP sockets to browsers: https://stackoverflow.com/questions/12407778/connecting-to-tcp-socket-from-browser-using-javascript, https://www.w3.org/TR/tcp-udp-sockets; but the typical approach is to have an intermediary that can convert requests from websockets to sockets, and then use websockets between your client and this intermediary. 

Thank you for your reply.


It seems impossible...

What if I generate a native Android app using Service Studio, is it still impossible to establish raw TCP sockets between Android App and TCP server without an intermediary?