added and documented socket method run-task #224