Alocal Network Communications Between Phone

So far I love Corona.  I have my JSON data coming and with just a few lines of code.  There is one “road block” that is stopping me from moving forward.  I need to be able to send data on a local network (no Internet) to a presence server (i.e. Jabber or WebSockets) running on a local server (maybe a Raspberry PI) and then rebroadcast that data to other phones/tablets that are on the same local network.  Once again, there will be NO INTERNET AVAILABLE due to the nature of the project in remote and the security requirements that will be placed on the data. 

The data must be pushed from phones to a central server and the phone must be able to receive push data from the server. 

What is the best way to accomplish this?  As I have mentioned I have my .NET application (Windows Phone/ Windows RT) working on a Jabber server (XMPP) but I am willing to move to simple WebSockets but I cannot find any code explaining how to do this in Corona.  Maybe there is a better way using a different protocol that I am unaware of that Corona supports.  But I must do this on a LOCAL network only. 

I guess I could use UDP but then I have to manage ACK and NACK…

Thanks

Chuck Giddens

Well we support Lua Sockets so you can do socket level work. You probably could setup a listener on a port on the Raspberry Pi and have your apps connect to it and listen for data being broadcast.  The only problem is pushing data.  If your app is awake and in the foreground, communications with the server won’t be a problem but once the app backgrounds, you are going to loose communications with it.  Real push notifications have to be broadcast from Apple (and Google Play) and trying to mimic their push service off line may not be possible (Corona or Native).  Apple supports a few cases for backgrounded apps, but this isn’t one of them.

Well we support Lua Sockets so you can do socket level work. You probably could setup a listener on a port on the Raspberry Pi and have your apps connect to it and listen for data being broadcast.  The only problem is pushing data.  If your app is awake and in the foreground, communications with the server won’t be a problem but once the app backgrounds, you are going to loose communications with it.  Real push notifications have to be broadcast from Apple (and Google Play) and trying to mimic their push service off line may not be possible (Corona or Native).  Apple supports a few cases for backgrounded apps, but this isn’t one of them.