work with socket server