- Building Scalable Apps with Redis and Node.js
- Joshua Johanan
- 149字
- 2021-08-05 17:49:04
Chapter 2. Extending Our Development with Socket.IO
In the last chapter, we built a simple web application that can serve HTML pages. Let's add some more functionality to our application. We have to build a chat app, so we will need some sort of real-time event framework. Luckily for us, there is Socket.IO, which will provide us with this real-time communication. Socket.IO fits right into the entire evented nature of Node.js. The whole paradigm of Socket.IO is completely different from using a web server. Socket.IO uses WebSockets to create a connection between the server and client. You will need to understand all this to get Socket.IO to do what you want it to. In this chapter, we will cover the following topics:
- Sending and receiving events
- Creating rooms to divide users
- Adding and reading data from sessions
- Authenticating connections
- Integrating Socket.IO with what we have built already
推薦閱讀
- SQL Server 從入門到項目實踐(超值版)
- Java編程指南:基礎知識、類庫應用及案例設計
- Practical DevOps
- HTML5 and CSS3 Transition,Transformation,and Animation
- 軟件項目管理實用教程
- JavaScript動態網頁開發詳解
- 硅谷Python工程師面試指南:數據結構、算法與系統設計
- PHP編程基礎與實例教程
- INSTANT Yii 1.1 Application Development Starter
- Emgu CV Essentials
- RubyMotion iOS Develoment Essentials
- Troubleshooting Citrix XenApp?
- Elasticsearch Essentials
- Java編程從入門到精通
- Unity 2017 Game AI Programming(Third Edition)