I am confused after reading Parse's documentation on Cloud Code. They say that Cloud Code is not a Node.js environment.
- What is the significance to this?
- Will my request to the server still be handled with the node.js engine ( since the actual server uses Node.js & Express)?
- How does the cloud code work with the server, are the request going through the server first, than passed to cloud code functions?
E.g when I call a cloud function from the client (In this case a iOS app).
PFCloud.callFunctionInBackground("testCloud", withParameters: [:]) {
(response: AnyObject?, error: NSError?) -> Void in
if (error == nil) {
if let testRespones = response as? String{
print(testRespones)
}
} else {
print(error)
}
}
My parse server is currently hosted on Heroku.
Any insight would be greatly appericated.