Let's say the application is installed on two Android and iOS devices. It communicates through the server, the application from device1 sends a command to the server for device2, device2 checks the server to find a message that it needs to execute the command and executes it. And what are the options for this interaction without the server (in the sense that with the participation, but not where two devices can communicate without it)?
I know that such interaction can be built using Push technology. When the device1 sends a Push message directly to the device2 bypassing the server, device2 catches the message by the receiver and executes the command (Yes, yes, can you?). And what other options are there?