Example of testing data sent through socket connection