Mobile and Web Messaging - Jeff Mesnil

Mobile and Web Messaging

Messaging Protocols for Web and Mobile Devices

(Autor)

Buch | Softcover
184 Seiten
2014
O'Reilly Media (Verlag)
978-1-4919-4480-6 (ISBN)
22,40 inkl. MwSt
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

Jeff Mesnil is a software developer who has made significant contributions to many open source middleware projects. He currently holds a Senior Software Engineer position at Red Hat in its JBoss Middleware Division.

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
Summary
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
Summary
Chapter 4Advanced STOMP
Frame Representation
Authentication
Message Acknowledgment
Transactions
Error Handling
Receipts
Heart-Beating
Summary
Chapter 5Beyond STOMP
Message Persistence
Filtered Consumer
Priority
Expiration
Summary
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
Summary
Chapter 7Web 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
Draw Sparklines
Send MQTT Messages
Chapter 8Advanced MQTT
Authentication
Error Handling
Heart-Beating
Last Will
Clean Session
Beyond MQTT?
Summary
Appendixes
Appendix Apache ActiveMQ
Download and Installation
Administration Web Console
Appendix Mosquitto
Download and Installation
Produce Messages with mosquitto_pub
Consume Messages with mosquitto_sub

Erscheint lt. Verlag 23.9.2014
Verlagsort Sebastopol
Sprache englisch
Maße 182 x 232 mm
Gewicht 310 g
Einbandart kartoniert
Themenwelt Mathematik / Informatik Informatik Web / Internet
Informatik Weitere Themen Smartphones / Tablets
ISBN-10 1-4919-4480-3 / 1491944803
ISBN-13 978-1-4919-4480-6 / 9781491944806
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
die verständliche Anleitung

von Rainer Hattenhauer

Buch | Softcover (2023)
Vierfarben (Verlag)
19,90
der schnelle Smartphone-Einstieg : für alle Pixel-, Nokia-, Motorola- …

von Anja Schmid; Andreas Lehner

Buch | Softcover (2023)
BILDNER Verlag
14,90