TCP Socket for iOS, Android and Electron


I am starting developing an app that needs to connect to a remote tcp server.
Unfortunately, I don’t see any implementation for a native approach to a TCP socket over Ionic. I found a couple of Cordova plugins, but just for mobile.
Does anybody have a solution?