implemented a real streaming function on uplink by coupling the server and the client