Chapter 5 – Communicating between Mobile and the Middle-Tier
In this chapter, we learn about Promises briefly, verifying that the connection channel is secure. We learn to communicate with the backend RESTful like API and authenticating the end user with the backend.
Communication with the backend
The following are important links to references related to the backend communication:
- The XMLHttpRequest specification: http://www.w3.org/TR/XMLHttpRequest2/
- The WebSockets specification: http://dev.w3.org/html5/websockets/
- The Promises/AP specification: http://promisesaplus.com and Q: https://github.com/kriskowal/q
- CryptoJS: https://code.google.com/p/crypto-js/
- Socket.IO demos: http://socket.io/demos/chat/
- HATEOAS JSON standards (our responses are very loosely based on the first item):
- The Hypertext application language: http://stateless.co/hal_specification.html
- JSON-LD: http://json-ld.org
- Not everyone loves HATEOAS – it's good to understand why: Why I Hate HATEOAS. This is available...