// we may need to restart event listening.
ensureListeningForEvents();
// create request
String rserverURL = getApplicationURL(scope) + "/" + method;
RpcRequest rpcRequest = new RpcRequest(rserverURL,
method,
params,
null,
redactLog,
sourceWindow,
clientId_,
clientVersion_);
if (isDisconnected())
return rpcRequest;
// send the request
rpcRequest.send(new RpcRequestCallback() {
public void onError(RpcRequest request, RpcError error)
{
// ignore errors if we are disconnected
if (isDisconnected())
return;