Socket.IO Cookbook
暫譯: Socket.IO 食譜
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 -
$534$507 -
$360$284 -
$862編譯系統透視:圖解編譯原理
-
$580$458 -
$699$552 -
$500$395 -
$600$474 -
$352區塊鏈技術指南
-
$580$458 -
$590$460 -
$520$406 -
$500$395 -
$500$390 -
$390$308 -
$480$379 -
$403Python 爬蟲開發與項目實戰
-
$580$458 -
$480$432 -
$680$537 -
$650$429
相關主題
商品描述
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 進行通訊的聊天和多用戶介面
- 將對話分段到房間和命名空間,以便每個 socket 不必接收每條消息
- 通過實施各種身份驗證技術來保護您的數據,鎖定 HTTP 來源並使用安全的 WebSocket
- 在多個伺服器端節點之間進行負載平衡,並使用 Redis、RabbitMQ 或 Memcached 使您的 WebSocket 保持同步
- 通過 Socket.IO 連接即時串流二進制數據,如音頻和視頻
- 通過將 Socket.IO 與混合行動應用程式整合,創建瀏覽器外的即時體驗
詳細內容
Socket.IO 是一個 JavaScript 函式庫,提供您實現即時分析、二進制串流、即時消息和文檔協作的能力。它有兩個部分:一個在瀏覽器中運行的客戶端函式庫,以及一個用於 Node.js 的伺服器端函式庫。Socket.IO 是事件驅動的,主要使用 WebSocket 協議,允許我們從伺服器和客戶端雙向發送數據。
這本書是完整的資源,涵蓋從 WebSocket 安全性到擴展 Socket.IO 應用程式的伺服器端的各種主題,以及其間的所有內容。
本書將提供如何使用 Socket.IO 為不同環境創建安全的雙向全雙工連接的實際範例。它還將解釋如何解決大量用戶和大量數據/消息的連接漏洞。
在本書結束時,您將成為一名合格的 Socket.IO 開發者。在範例和實際解決方案的幫助下,您將學會如何通過使用 Socket.IO 在伺服器端和客戶端之間創建高效的消息系統,來創建快速、可擴展和動態的即時應用程式。
風格與方法
本書採用食譜式的格式,提供實用的、可立即使用的任務導向範例,展示如何創建 Socket.IO 應用程式的各個元素。