sends standard input to a websocket server