Chapter 14. Realtime with WebSockets

 

This chapter covers

  • Understanding WebSockets
  • Using the Sails WebSocket client
  • Implementing a chat system in Brushfire
  • Incorporating resourceful pubsub into chat

Brushfire users want to communicate with each other about the videos they’re watching. We’ll satisfy this requirement by implementing a chat system where each video will have its own persistent chat room. Making the chat persistent, meaning storing the chats, will give users the flexibility to interact synchronously (at the same time) or asynchronously (leaving a question that can be answered later).

14.1. Obtaining the example materials for this chapter

14.2. Understanding WebSockets

14.3. Implementing chat

14.4. Sending typing and stoppedTyping notifications

14.5. Understanding resourceful pubsub

14.6. Understanding how the blueprint API uses RPS methods

14.7. Summary

sitemap