My Account Log in

1 option

WebSocket / Andrew Lombardi.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Lombardi, Andrew, author.
Language:
English
Subjects (All):
HTML (Document markup language).
Web applications.
Client/server computing.
JavaScript (Computer program language).
Physical Description:
1 online resource (143 p.)
Edition:
First edition.
Place of Publication:
Sebastopol, CA : O'Reilly, 2015.
Language Note:
English
System Details:
text file
Summary:
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).
Contents:
Copyright; Table of Contents; Preface; Who Should Read This Book; Goals of This Book; Navigating This Book; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Quick Start; Getting Node and npm; Installing on Windows; Installing on OS X; Installing on Linux; Hello, World! Example; Why WebSocket?; Summary; Chapter 2. WebSocket API; Initializing; Stock Example UI; WebSocket Events; Event: Open; Event: Message; Event: Error; Event: PING/PONG; Event: Close; WebSocket Methods; Method: Send; Method: Close; WebSocket Attributes
Attribute: readyStateAttribute: bufferedAmount; Attribute: protocol; Stock Example Server; Testing for WebSocket Support; Summary; Chapter 3. Bidirectional Chat; Long Polling; Writing a Basic Chat Application; WebSocket Client; Client Identity; Events and Notifications; The Server; The Client; Summary; Chapter 4. STOMP over WebSocket; Implementing STOMP; Getting Connected; Connecting via the Server; Setting Up RabbitMQ; Connecting the Server to RabbitMQ; The Stock Price Daemon; Processing STOMP Requests; Client; Using RabbitMQ with Web-Stomp; STOMP Client for Web and Node.js
Installing the Web-Stomp Plug-inEcho Client for Web-Stomp; Summary; Chapter 5. WebSocket Compatibility; SockJS; SockJS Chat Server; SockJS Chat Client; Socket.IO; Adobe Flash Socket; Connecting; Socket.IO Chat Server; Socket.IO Chat Client; Pusher.com; Channels; Events; Pusher Chat Server; Pusher Chat Client; Don't Forget: Pusher Is a Commercial Solution; Reverse Proxy; Summary; Chapter 6. WebSocket Security; TLS and WebSocket; Generating a Self-Signed Certificate; Installing on Windows; Installing on OS X; Installing on Linux; Setting up WebSocket over TLS; WebSocket Server over TLS Example
Origin-Based Security ModelClickjacking; X-Frame-Options for Framebusting; Denial of Service; Frame Masking; Validating Clients; Setting Up Dependencies and Inits; Listening for Web Requests; WebSocket Server; Summary; Chapter 7. Debugging and Tools; The Handshake; The Server; The Client; Download and Configure ZAP; WebSocket Secure to the Rescue; Validating the Handshake; Inspecting Frames; Masked Payloads; Closing Connection; Summary; Chapter 8. WebSocket Protocol; HTTP 0.9-The Web Is Born; HTTP 1.0 and 1.1; WebSocket Open Handshake; Sec-WebSocket-Key and Sec-WebSocket-Accept
WebSocket HTTP HeadersWebSocket Frame; Fin Bit; Frame Opcodes; Masking; Length; Fragmentation; WebSocket Close Handshake; WebSocket Subprotocols; WebSocket Extensions; Alternate Server Implementations; Summary; Index; About the Author
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed January 20, 2016).
ISBN:
9781449369231
1449369235
9781449369262
144936926X
9781449369255
1449369251
OCLC:
922588820

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account