I’ve done my node.js middleware in JSON for a realtime application on iPhone. I wanted to know if there’s any way to prepare a client for iPhone ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
At i.TV we use node.js to power the API for our iPhone app. We use NSURLConnection to make the requests to the server. It’s really simple. We use GET POST PUT and occasionally some other requests, express handles them really nicely. With express it’s easy to send down status codes with your response so that you can confirm things went alright. NSURLConnection makes it super easy to read those status codes. For example on the server you might do something like this:
Check out http://en.wikipedia.org/wiki/Representational_state_transfer for a good list of appropriate status codes and other information about REST.
The ExpressJS docs are pretty nice too: http://expressjs.com/guide.html