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


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)


having similar problem, i used websockets as written in

It worked.