We can send to every connection, but sometimes we want every connection but our own.
Welcome to "Broadcasting a Message."…Part of the course:…"Building Complex Express Sites with Redis and Socket.io."…In the previous video, we looked at sending messages…to more connections than just our own.…Now in this video, we're gonna take a look at…sending a broadcast message.…Now this is very similar to what we just learned,…but it is just slightly different.…And in addition to this, we'll also start…to use more events than just one.…Now in the previous videos, we've used the omit method…to send a message to every connected client.…
Now the only downside to that…is that it included our own connection.…Now this can be redundant, as we know…what the message is, because we sent it.…So we don't necessarily need it coming back to us.…Now in this video, we're gonna see…how you can send it to everyone but the sender.…So let's start with package.Jason.…And, again, we're using express and socket.io.…We have version 4.14 and 1.5.1, the same as the others.…Next we'll move on to a server site with index@JS.…
Again, this top part is the same…
Note: This course was created by Packt Publishing. We are pleased to host this training in our library.
- Using Redis
- Structures, channels, and subscribing
- Adding messaging
- Integrating Redis and Node.js
- Working with geospacial indexes
- Using Node.js with Socket.IO
- Working with rooms
- Creating namespaces
- Using Socket.IO and Express
- Sharing states
- Using routes
Skill Level Intermediate
Node.js: Extend and Maintain Applicationswith Daniel Khan3h 35m Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
Building a Website with Node.js and Express.jswith Ray Villalobos3h 16m Intermediate
1. Using Redis
2. Redis Messaging
3. Integrating Redis and Node.js
4. Using Node.js and Socket.IO
5. Using Rooms and Namespaces in Socket.IO
6. Using Socket.IO and Express
Out of process messaging8m 20s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.