server: add method to iterate clients of server