Mobile and Web Messaging. Messaging Protocols for Web and Mobile Devices - Helion
ISBN: 978-14-919-4476-9
stron: 184, Format: ebook
Data wydania: 2014-08-18
Księgarnia: Helion
Cena książki: 72,24 zł (poprzednio: 84,99 zł)
Oszczędzasz: 15% (-12,75 zł)
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
Osoby które kupowały "Mobile and Web Messaging. Messaging Protocols for Web and Mobile Devices", wybierały także:
- Kotlin w praktyce. Kurs video. Tworzenie aplikacji webowych za pomocą Spring Boota 79,00 zł, (31,60 zł -60%)
- Platforma Xamarin. Kurs video. Poziom drugi. Zaawansowane techniki tworzenia aplikacji cross-platform 99,00 zł, (39,60 zł -60%)
- Android Studio. Kurs video. Narzędzia Android developera 69,00 zł, (31,05 zł -55%)
- Android. Techniki efektywnej pracy. Kurs video. Poziom pierwszy. Skróty klawiszowe i biblioteki 59,00 zł, (26,55 zł -55%)
- Testowanie aplikacji mobilnych na platformę Android. Kurs video. Poziom pierwszy. Testy jednostkowe i UI 59,00 zł, (26,55 zł -55%)
Spis treści
Mobile and Web Messaging. Messaging Protocols for Web and Mobile Devices eBook -- spis treści
- Preface
- What This Book is About
- What This Book is Not About
- Messaging is Simple
- Enterprise Messaging Is Not So Simple
- Mobile Messaging Is Simple Again
- Whats in This Book
- Target Audience
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Introduction
- Messaging Concepts
- Messaging Models
- Point-to-Point
- Publish/Subscribe
- Message Representation
- Examples
- Locations Application Using STOMP
- Messaging models for the Locations application
- Message representation for the Locations application
- Motions Application Using MQTT
- Messaging models for the Motions application
- Message representation for the Motions application
- Locations Application Using STOMP
- Summary
- 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
- Simulate a Location with iOS Simulator
- Create a STOMP Client with StompKit
- Connect to a STOMP Broker
- Disconnect from a STOMP Broker
- Send STOMP Messages
- Display StompKit Debug Log
- ActiveMQ Admin Console
- A Simple STOMP Consumer
- Display the Text Messages
- Receive STOMP Messages
- Subscribe to a STOMP Destination
- Unsubscribe from the Destination
- Finish the Application
- Summary
- 3. Web Messaging with STOMP
- HTML5 Web Sockets
- stomp.js, STOMP over Web Sockets
- Bootstrap the Locations Web Application
- Create a Stomp Client with stomp.js
- Connect to a STOMP Broker
- Receive STOMP Messages
- Subscribe to a Wildcard Destination
- Draw the Device Locations on a Map
- Send STOMP Messages
- Disconnect from the STOMP Broker
- Summary
- 4. Advanced STOMP
- Frame Representation
- Headers
- Authentication
- StompKit Example
- stomp.js Example
- Message Acknowledgment
- StompKit Example
- stomp.js Example
- Transactions
- StompKit Example
- stomp.js Example
- Error Handling
- StompKit Example
- stomp.js Example
- Receipts
- StompKit Example
- stomp.js Example
- Heart-Beating
- StompKit Example
- stomp.js Example
- Summary
- Frame Representation
- 5. Beyond STOMP
- Message Persistence
- Filtered Consumer
- Priority
- Expiration
- Summary
- 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
- Quality of Service
- Retained Message
- Receive MQTT Messages
- Subscription
- Unsubscribing
- Define an MQTTMessage Handler
- Summary
- 7. Web Messaging with MQTT
- Eclipse Paho JavaScript Client
- Bootstrap the Motions Web Application
- Create an MQTT Client with mqttws31.js
- Connect to the MQTT Broker
- Receive MQTT Messages
- Topic Wildcards
- Draw Sparklines
- Send MQTT Messages
- Summary
- 8. Advanced MQTT
- Authentication
- MQTTKit Example
- mqttws31.js Example
- Error Handling
- MQTTKit Example
- mqttws31.js Example
- Heart-Beating
- MQTTKit Example
- mqttws31.js Example
- Last Will
- MQTTKit Example
- mqttws31.js Example
- Clean Session
- MQTTKit Example
- mqttws31.js Example
- Beyond MQTT?
- Summary
- Authentication
- III. Appendixes
- A. Apache ActiveMQ
- Download and Installation
- Administration Web Console
- B. Mosquitto
- Download and Installation
- Produce Messages with mosquitto_pub
- Consume Messages with mosquitto_sub
- Index