fixed the parameter name in the server and client setDiscoveryHandler
method