I currently have an Ionic 5 app based on React, using Capacitor 3.
I need to establish a TCP Socket Connection on Android and iOS, to send ArrayBuffer print invoices on a Thermal Printer and to do do that I should be able to send an ArrayBuffer of raw data to an HTTP:// address on my local network, like 192.168.1.92 and port 9100.
This means that I can’t use a WebSocket (because the protocol is WS://) and I also just can’t send HTTP Requests like POST, GET, PATCH because the Thermal Printer will print out the Request Headers on the paper. Also, using Socket.io won’t work because it doesn’t allow to send raw data like an ArrayBuffer.
I believe that this would be easy if my app was Angular based, because I’d be able to use Cordova without Capacitor, and there are a few Plugins that allow us to do this. Sockets-for-cordova is one of them.
How much will it cost for a conversion of Sockets-for-cordova to Capacitor 3?
And for a solution to establish a Socket Connection on Android and iOS that allows me to write raw data to an HTTP:// address?
Thanks in advance for your attention!