Librería Portfolio Librería Portfolio

Búsqueda avanzada

TIENE EN SU CESTA DE LA COMPRA

0 productos

en total 0,00 €

WEBSOCKET. LIGHTWEIGHT CLIENT-SERVER COMMUNICATIONS
Título:
WEBSOCKET. LIGHTWEIGHT CLIENT-SERVER COMMUNICATIONS
Subtítulo:
Autor:
LOMBARDI, A
Editorial:
O´REILLY
Año de edición:
2015
Materia
SERVIDORES
ISBN:
978-1-4493-6927-9
Páginas:
144
22,95 €

 

Sinopsis

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



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