Connecting game to companion app

I have to develop an unreal game that will connect to a companion app. The game will be running on Windows and the companion app on iOS.

The game will send an array of strings to the companion app when it connects. Then the app will display a series of buttons that depend on those strings, and will send to the game what button has been pressed.

I’ve seen that I can use websockets to do the communication between the apps, but is there any better way to do this? Perhaps developing the companion app with unreal too?

Thanks.

Basically just pick a communication method and use it. We use a custom TCP server/client. There are several free UDP/TCP libraries out there you could use as well.

You can use the TCP / UDP classes that come with the engine.

There’s a full tutorial by Rama HERE](A new, community-hosted Unreal Engine Wiki - Announcements and Releases - Unreal Engine Forums,Receive_Binary_Data_From_an_IP/Port_Into_UE4,(Full_Code_Sample)) ive used a similar way in my own projects and it works perfectly.
The external app doesn’t have to be written in python, any TCP client will work.

Also for your external app (as Jocko Jonson mentioned above) there are tons of available opensource TCP/UDP examples on github / codeproject.