Building a Chat Room Application Using Socket.IO

In this chapter, we are going to cover how to build an Angular chat room application using Socket.IO in order to delve into the ability to send messages back and forth between the client and server without having to establish REST APIs or through the use of GraphQL queries. The technology we are going to use involves the establishment of a long-running connection from the client to the server, making communication as simple as passing a message.

In this chapter, we are going to cover the following topics:

  • Long-running client/server communications using Socket.IO
  • Creating a Socket.IO server
  • Creating an Angular client and adding Socket.IO support
  • Using decorators to add client-side logging
  • Using Bootstrap in our client
  • Adding Bootstrap navigation
  • Signing up to Auth0 to authenticate our client
  • Adding Auth0 support to our client
  • Adding secure Angular routing
  • Hooking up to Socket.IO messages at our client and server
  • Using Socket.IO namespaces to segregate messages
  • Adding room support
  • Receiving and sending messages
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.44.108