use server.getConnections() to avoid deprecation warnings