Tie user input into socket output