added a method for sending data to all clients in GenericServer