Communication with server using Sockets & TCP (like java sockets)

Hi,

I’am building an app with ionic. What i need to do is to send & receive data to/from an existing server using tcp.
When developing native android apps I used java sockets for this issue.
Is there anything similar to sockets in ionic/angluar or has anyone an idea how i could solve my problem?

TCP sockets are not an Ionic matter but something you would do through Cordova (my guess would be a Cordova plugin)

Hi,

having similar problem, i used websockets as written in https://github.com/mcollina/mosca/wiki/MQTT-over-Websockets

It worked.

Igor