Book description
Learn how to use messaging technologies to build responsive and resilient applications for mobile devices and web browsers. With this hands-on guide, you’ll use the STOMP and MQTT messaging protocols to write iOS and web applications capable of sending and receiving GPS and device sensor data, text messages, and alerts.
Messaging protocols are not only simple to use, but also conserve network bandwidth, device memory, and batteries. Using this book’s step-by-step format, author Jeff Mesnil helps you work with Objective-C and JavaScript libraries, as well as the protocols. All you need to get started are basic programming skills.
- Understand basic messaging concepts and composition
- Learn two common messaging models: point-to-point and publish/subscribe
- Use STOMP to write an iOS application that sends GPS data, and a web app that consumes the data
- Build an iOS app with MQTT that tracks and broadcasts device motion data, and a web app that displays the data and sends alerts
- Extend STOMP to filter, prioritize, persist, and expire messages
- Take a complete tour of STOMP and MQTT, including features not used in the book’s sample apps
Table of contents
- Preface
- 1. Introduction
- I. STOMP
-
2. Mobile Messaging with STOMP
- StompKit
- Create the Locations Project with Xcode
- Create the Podfile
- Identify the Device
- Display the Device Position
- Access the Device Geolocation Data with CoreLocation Framework
- Create a STOMP Client with StompKit
- Connect to a STOMP Broker
- Disconnect from a STOMP Broker
- Send STOMP Messages
- Display the Text Messages
- Receive STOMP Messages
- Unsubscribe from the Destination
- Finish the Application
- Summary
- 3. Web Messaging with STOMP
- 4. Advanced STOMP
- 5. Beyond STOMP
- II. MQTT
-
6. Mobile Messaging with MQTT
- MQTTKit
- Create the Motions Project with Xcode
- Create the Podfile
- Identify the Device
- Display the Device Motions Values
- Capture the Device Motions with CoreMotion Framework
- Create an MQTT Client with MQTTKit
- Connect to an MQTT Broker
- Disconnect from an MQTT Broker
- Send MQTT Messages
- Receive MQTT Messages
- Summary
- 7. Web Messaging with MQTT
- 8. Advanced MQTT
- III. Appendixes
- A. Apache ActiveMQ
- B. Mosquitto
- Index
Product information
- Title: Mobile and Web Messaging
- Author(s):
- Release date: August 2014
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491944769
You might also like
article
Reinventing the Organization for GenAI and LLMs
Previous technology breakthroughs did not upend organizational structure, but generative AI and LLMs will. We now …
book
Ext JS in Action, Second Edition
Ext JS in Action, Second Edition starts with a quick overview of the framework and then …
article
Splitting Strings on Any of Multiple Delimiters
Build your knowledge of Python with this Shortcuts collection. Focusing on common problems involving text manipulation, …
book
Building Applications with Spring 5 and Vue.js 2
Become efficient in both frontend and backend web development with Spring and Vue Key Features Connect …