Cover image for 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. Application Using STOMP
        1. Messaging Models
        2. Message Representation
      2. Application Using MQTT
        1. Messaging Models
        2. Message Representation
    5. Summary
  2. I. STOMP
    1. 2. Mobile Messaging with STOMP
      1. StompKit
      2. Create the
      3. Create the Podfile
      4. Identify the Device
      5. Display the Device Position
      6. Access the Device Geolocation Data with
        1. Simulate a Location with iOS Simulator
      7. Create a STOMP Client with
      8. Connect to a STOMP Broker
      9. Disconnect from a STOMP Broker
      10. Send STOMP Messages
        1. Display
        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
      5. Create a Stomp Client with
      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. Example
        2. Example
      3. Message Acknowledgement
        1. Example
        2. Example
      4. Transactions
        1. Example
        2. Example
      5. Error Handling
        1. Example
        2. Example
      6. Receipts
        1. Example
        2. Example
      7. Heart-beating
        1. Example
        2. 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