refactoring - only one socket: remove client sockets