Sign up
Forgot password?
FAQ: Login

Mesnil Jeff. Mobile and Web Messaging: Messaging Protocols for Web and Mobile Devices

  • pdf file
  • size 8,84 MB
Mesnil Jeff. Mobile and Web Messaging: Messaging Protocols for Web and Mobile Devices
O’Reilly - 2014 - 150 p - ISBN: 1-491-94480-3
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
STOMP
Chapter 2Mobile 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
Chapter 3Web 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
Draw the Device Locations on a Map
Send STOMP Messages
Disconnect from the STOMP Broker
Chapter 4Advanced STOMP
Frame Representation
Authentication
Message Acknowledgment
Transactions
Error Handling
Receipts
Heart-Beating
Chapter 5Beyond STOMP
Message Persistence
Filtered Consumer
Priority
Expiration
MQTT
Chapter 6Mobile 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
Chapter 7Web Messaging with MQTT
Eclipse Paho JavaScript Client
Bootstrap the Motions Web Application
Create an MQTT Client with mqttws
31.js
Connect to the MQTT Broker
Receive MQTT Messages
Draw Sparklines
Send MQTT Messages
Chapter 8Advanced MQTT
Authentication
Error Handling
Heart-Beating
Last Will
Clean Session
Beyond MQTT?
Appendix Apache ActiveMQ
Download and Installation
Administration Web Console
Appendix Mosquitto
Download and Installation
Produce Messages with mosquitto_pub
Consume Messages with mosquitto_sub
  • Sign up or login using form at top of the page to download this file.
  • Sign up
Up