Logically thinking: NO! Such a setup will need to work quite autonomously, and can accept commands only while connected to network. Server will accept commands from app and they will be passed to device as soon as connection will be reestablished, but it will not be realtime.