Socket.IO Cookbook
Tyson Cadenhead
- 出版商: Packt Publishing
- 出版日期: 2015-10-15
- 定價: $1,140
- 售價: 6.0 折 $684
- 語言: 英文
- 頁數: 184
- 裝訂: Paperback
- ISBN: 1785880861
- ISBN-13: 9781785880865
-
相關分類:
JavaScript、Node.js
立即出貨 (庫存=1)
買這商品的人也買了...
-
$500$450 -
$320$250 -
$620$608 -
$780$616 -
$520$411 -
$454Linux 設備驅動開發詳解 : 基於最新的 Linux4.0 內核
-
$360$284 -
$862編譯系統透視:圖解編譯原理
-
$580$458 -
$699$552 -
$500$395 -
$600$474 -
$352區塊鏈技術指南
-
$580$458 -
$590$460 -
$520$406 -
$500$425 -
$500$390 -
$390$332 -
$480$379 -
$403Python 爬蟲開發與項目實戰
-
$580$458 -
$480$408 -
$680$578 -
$650$507
相關主題
商品描述
Over 40 recipes to help you create real-time JavaScript applications using the robust Socket.IO framework
About This Book
- Create secure WebSocket connections and real-time mobile applications using Socket.IO
- Devise efficient messaging systems between the server side and the client side
- A step-by-step implementation guide to help you create elements of Socket.IO application
Who This Book Is For
If you have some knowledge of JavaScript and Node.js and want to create awe-inspiring application experiences using real time communication, then this book is for you. Developers with knowledge of other scripting languages should also be able to easily follow along.
What You Will Learn
- Build rich and interactive real-time dashboards using Socket.IO to pipe in data as it becomes available
- Design chat and multiple-person interfaces that leverage Socket.IO for communication
- Segment conversations to rooms and namespaces so that every socket doesn't have to receive every message
- Secure your data by implementing various authentication techniques, locking down the HTTP referrer and using secure WebSockets
- Load balance across multiple server-side nodes and keep your WebSockets in sync using Redis, RabbitMQ or Memcached
- Stream binary data such as audio and video in real-time over a Socket.IO connection
- Create real-time experiences outside of the browser by integrating Socket.IO with hybrid mobile applications
In Detail
Socket.IO is a JavaScript library that provides you with the ability to implement real-time analytics, binary streaming, instant messaging, and document collaboration. It has two parts: a client-side library that runs in the browser, and a server-side library for node.js. Socket.IO is event-driven and primarily uses the WebSocket protocol that allows us to emit data bi-directionally from the server and the client. Socket.IO
This book is a complete resource, covering topics from webSocket security to scaling the server-side of a Socket.IO application and everything in between.
This book will provide real-world examples of how secure bi-directional, full-duplex connections that can be created using Socket.IO for different environments. It will also explain how the connection vulnerabilities can be resolved for large numbers of users and huge amounts of data/messages.
By the end of the book, you will be a competent Socket.IO developer. With the help of the examples and real-world solutions,you will learn to create fast, scalable, and dynamic real-time apps by creating efficient messaging systems between the server side and the client side using Socket.IO.
Style and approach
This book is written in a cookbook-style format and provides practical, immediately usable task-based recipes that show you how to create the elements of a Socket.IO application.
商品描述(中文翻譯)
超過40個食譜,幫助您使用強大的Socket.IO框架創建實時JavaScript應用程序
關於本書
- 使用Socket.IO創建安全的WebSocket連接和實時移動應用程序
- 在服務器端和客戶端之間設計高效的消息系統
- 逐步實施指南,幫助您創建Socket.IO應用程序的元素
本書適合對JavaScript和Node.js有一定了解,並希望使用實時通信創建令人驚嘆的應用程序體驗的讀者。對其他腳本語言有知識的開發人員也應該能夠輕鬆跟隨。
您將學到什麼
- 使用Socket.IO建立豐富且互動的實時儀表板,以在數據可用時導入數據
- 設計聊天和多人界面,利用Socket.IO進行通信
- 將對話分段到房間和命名空間,以便每個套接字不必接收每個消息
- 通過實施各種身份驗證技術、鎖定HTTP引用程序和使用安全WebSocket來保護數據
- 使用Redis、RabbitMQ或Memcached在多個服務器端節點之間平衡負載,並保持WebSockets同步
- 通過Socket.IO連接實時流式傳輸二進制數據,例如音頻和視頻
- 通過將Socket.IO與混合移動應用程序集成,創建瀏覽器之外的實時體驗
詳細內容
Socket.IO是一個JavaScript庫,提供實時分析、二進制流式傳輸、即時消息和文檔協作的功能。它由兩部分組成:在瀏覽器中運行的客戶端庫和用於node.js的服務器端庫。Socket.IO是事件驅動的,主要使用WebSocket協議,允許我們從服務器和客戶端雙向發送數據。
本書是一個完整的資源,涵蓋了從WebSocket安全性到擴展Socket.IO應用程序的服務器端的所有主題。
本書將提供實際的示例,展示如何在不同環境中使用Socket.IO創建安全的雙向全雙工連接。它還將解釋如何解決大量用戶和大量數據/消息的連接漏洞。
通過閱讀本書,您將成為一名熟練的Socket.IO開發人員。通過示例和實際解決方案的幫助,您將學習使用Socket.IO在服務器端和客戶端之間創建高效的消息系統,從而創建快速、可擴展和動態的實時應用程序。
風格和方法
本書以食譜形式撰寫,提供實用的、可立即使用的基於任務的食譜,展示如何創建Socket.IO應用程序的元素。