I am using the network library to connect to other devices. Basically, 2 or more tablets will receive data from a master tablet and using the asyncstreamsobject module as my app will write data of type object to the output stream.
In this example the program only receives data from multiple connections. However the important thing to take from this example is how the connections map is handled. You can add another Map that maps between a client id and the AsyncStream object and it will allow you to get the correct AsyncStream object.