WebSocket
Lightweight Client-Server Communications
Paperback Engels 2015 1e druk 9781449369279Samenvatting
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
-Move from "classic" HTTP requests to smaller, more nimble WebSockets
-Explores how WebSockets affect scaling in larger applications
-Learn how to use WebSockets with browsers that don't support them natively
-Discover how to keep WebSocket-based systems running even as tasks and environments change over time
Specificaties
Lezersrecensies
Inhoudsopgave
-Getting Node and npm
-Hello, World! Example
-Why WebSocket?
-Summary
2. WebSocket API
-Initializing
-Stock Example UI
-WebSocket Events
-WebSocket Methods
-WebSocket Attributes
-Stock Example Server
-Testing for WebSocket Support
-Summary
3. Bidirectional Chat
-Long Polling
-Writing a Basic Chat Application
-WebSocket Client
-Client Identity
-Events and Notifications
-The Server
-The Client
-Summary
4. STOMP over WebSocket
-Implementing STOMP
-Setting Up RabbitMQ
-Connecting the Server to RabbitMQ
-Processing STOMP Requests
-Client
-Using RabbitMQ with Web-Stomp
-Summary
5. WebSocket Compatibility
-SockJS
-Socket.IO
-Pusher.com
-Reverse Proxy
-Summary
6. WebSocket Security
-TLS and WebSocket
-Origin-Based Security Model
-Denial of Service
-Frame Masking
-Validating Clients
-Summary
7. Debugging and Tools
-The Handshake
-WebSocket Secure to the Rescue
-Validating the Handshake
-Inspecting Frames
-Closing Connection
-Summary
8. WebSocket 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
Anderen die dit boek kochten, kochten ook
Rubrieken
- advisering
- algemeen management
- coaching en trainen
- communicatie en media
- economie
- financieel management
- inkoop en logistiek
- internet en social media
- it-management / ict
- juridisch
- leiderschap
- marketing
- mens en maatschappij
- non-profit
- ondernemen
- organisatiekunde
- personal finance
- personeelsmanagement
- persoonlijke effectiviteit
- projectmanagement
- psychologie
- reclame en verkoop
- strategisch management
- verandermanagement
- werk en loopbaan