Updating listener to sockets