public IEnumerator Send <TRequest, TResponse>(TRequest request, bool immediately = false) where TRequest : JsonRpcBaseRequest where TResponse : JsonRpcBaseResponse { if (immediately || !request.IsBulked) { yield return(CoroutineManager.StartCoroutine(JsonRpcClient.Send <TRequest, TResponse>(request))); // Send request immediately } else { if (!Authorized) { throw new RDataException("You need to be authorized to send " + typeof(TRequest).Name); } _activeChunk.AddRequest(request); } }