Cover image for Mobile and Web Messaging

Book description

The use of mobile devices is increasing and widening. Not only are smartphones and tablets connected to the Internet but also automation devices, car systems, and more. With the messaging technology covered in this practical guide, you’ll learn how to apply protocols that use the most critical resources (network bandwidth and memory usage) efficiently—and guarantee that the data will be effectively delivered even in the event of loss of network connectivity.

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