0

I'm attempting to establish communication (messages/socket/tcp) between an iOS app (I can do either hybrid and Native app) and a macOS through USB (on the mac will be nodejs app the listen to messages)

I read on libimobiledevice that it's possible to communicate from and to the IOS.

what will be the easiest way to send messages?

Liam
  • 957
  • 1
  • 9
  • 25

1 Answers1

-2

Cool project you've got there! Since you're dealing with libimobiledevice, you're already on the right track for USB communication.

For sending messages, using a WebSocket approach can be a smooth way to establish communication between your iOS app and Node.js on macOS. WebSockets are well-supported in both environments and provide real-time, bidirectional communication.

On the iOS side, you can use libraries like Starscream for WebSocket handling. And on the Node.js side, you've got various WebSocket libraries like ws or socket.io.

This way, you can set up a simple messaging system where your iOS app and your Node.js app can exchange messages seamlessly.

Aman Kaushik
  • 360
  • 2
  • 10