You are previewing Mobile and Web Messaging.
O'Reilly logo
Mobile and Web Messaging

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.

Table of Contents

  1. 1. Introduction
    1. Messaging Concepts
    2. Messaging Models
      1. Point-to-Point
      2. Publish/Subscribe
    3. Message Representation
    4. Examples
      1. Locations Application Using STOMP
        1. Locations Messaging Models
        2. Locations Message Representation
      2. Motions Application Using MQTT
        1. Motions Messaging Models
        2. Motions Message Representation
    5. Summary
  2. I. STOMP
    1. 2. Mobile Messaging with STOMP
      1. StompKit
      2. Create the Locations Project with Xcode
      3. Create the Podfile
      4. Identify the Device
      5. Display the Device Position
      6. Access the Device Geolocation Data with CoreLocation Framework
        1. Simulate a Location with iOS Simulator
      7. Create a STOMP Client with StompKit
      8. Connect to a STOMP Broker
      9. Disconnect from a STOMP Broker
      10. Send STOMP Messages
        1. Display StompKit Debug Log
        2. ActiveMQ Admin Console
        3. a Simple STOMP Consumer
      11. Display the Text Messages
      12. Receive STOMP Messages
        1. Subscribe to a STOMP Destination
      13. Unsubscribe from the Destination
      14. Finish the Application
      15. Summary
    2. 3. Web Messaging with STOMP
      1. About the Code
      2. HTML5 Web Sockets
      3. stomp.js, STOMP Over Web Sockets
      4. Bootstrap the locations.html Web Application
      5. Create a Stomp Client with stomp.js
      6. Connect to a STOMP Broker
      7. Receive STOMP Messages
        1. Subscribe to a Wildcard Destination
      8. Draw the Device Locations on a Map
      9. Send STOMP Messages
      10. Disconnect from the STOMP Broker
      11. Summary
    3. 4. Advanced STOMP
      1. Frame Representation
        1. Headers
      2. Authentication
        1. StompKit Example
        2. stomp.js Example
      3. Message Acknowledgement
        1. StompKit Example
        2. stomp.js Example
      4. Transactions
        1. StompKit Example
        2. stomp.js Example
      5. Error Handling
        1. StompKit Example
        2. stomp.js Example
      6. Receipts
        1. StompKit Example
        2. stomp.js Example
      7. Heart-beating
        1. StompKit Example
        2. stomp.js Example
      8. Summary
    4. 5. Beyond STOMP
      1. Message Persistence
      2. Filtered Consumer
      3. Priority
      4. Expiration
      5. Summary
  3. About the Author
  4. Copyright