WebSocket - Andrew Lombardi

WebSocket

Lightweight Client-Server Communications

(Autor)

Buch | Softcover
144 Seiten
2015
O'Reilly Media (Verlag)
978-1-4493-6927-9 (ISBN)
22,40 inkl. MwSt
Until recently, creating desktop-like applications in the browser meant using inefficient Ajax or Comet technologies to communicate with the server. With this practical guide, you’ll learn how to use WebSocket, a protocol that enables the client and server to communicate with each other on a single connection simultaneously. No more asynchronous communication or long polling!

For developers with a good grasp of JavaScript (and perhaps Node.js), author Andrew Lombardi provides useful hands-on examples throughout the book to help you get up to speed with the WebSocket API. You’ll also learn how to use WebSocket with Transport Layer Security (TLS).
  • Learn how to use WebSocket API events, messages, attributes, and methods within your client application
  • Build bi-directional chat applications on the client and server with WebSocket as the communication layer
  • Create a subprotocol over WebSocket for STOMP 1.0, the Simple Text Oriented Messaging Protocol
  • Use options for older browsers that don’t natively support WebSocket
  • Protect your WebSocket application against various attack vectors with TLS and other tools
  • Debug applications by learning aspects of the WebSocket lifecycle

For the last 5 years, Andrew Lombardi has bounced all over North America and Europe giving dozens of talks at conferences about topics ranging from backend Java development to HTML5 to building for mobile using only JavaScript and many more.

Chapter 1Quick Start
Getting Node and npm
Hello, World! Example
Why WebSocket?
Summary
Chapter 2WebSocket API
Initializing
Stock Example UI
WebSocket Events
WebSocket Methods
WebSocket Attributes
Stock Example Server
Testing for WebSocket Support
Summary
Chapter 3Bidirectional Chat
Long Polling
Writing a Basic Chat Application
WebSocket Client
Client Identity
Events and Notifications
The Server
The Client
Summary
Chapter 4STOMP over WebSocket
Implementing STOMP
Setting Up RabbitMQ
Connecting the Server to RabbitMQ
Processing STOMP Requests
Client
Using RabbitMQ with Web-Stomp
Summary
Chapter 5WebSocket Compatibility
SockJS
Socket.IO
Pusher.com
Reverse Proxy
Summary
Chapter 6WebSocket Security
TLS and WebSocket
Origin-Based Security Model
Denial of Service
Frame Masking
Validating Clients
Summary
Chapter 7Debugging and Tools
The Handshake
WebSocket Secure to the Rescue
Validating the Handshake
Inspecting Frames
Closing Connection
Summary
Chapter 8WebSocket Protocol
HTTP 0.9—The Web Is Born
HTTP 1.0 and 1.1
WebSocket Open Handshake
WebSocket Frame
WebSocket Close Handshake
WebSocket Subprotocols
WebSocket Extensions
Alternate Server Implementations
Summary

Erscheint lt. Verlag 20.10.2015
Zusatzinfo black & white illustrations
Verlagsort Sebastopol
Sprache englisch
Maße 178 x 233 mm
Gewicht 227 g
Einbandart kartoniert
Themenwelt Informatik Netzwerke TCP / IP und IPv6
Mathematik / Informatik Informatik Web / Internet
Schlagworte HTTP • Internetprotokolle • TCP • WebSocket
ISBN-10 1-4493-6927-8 / 1449369278
ISBN-13 978-1-4493-6927-9 / 9781449369279
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich

von Barry Pollard

Buch | Softcover (2019)
Manning Publications (Verlag)
53,95