data-device: add a function to send the selection to a client