Node JS: Socket I/O: Chat

Summary

Chat application using SocketIO.

  • Connexion in main room (Public discussion) with user name.
  • The main chat windows displays also when a user connects or disconnects, and lists of all the connected people.
  • Everybody who's connected has is own room so users can send private messages.
  • A message is displayed when someone is writing but only if the user is in the same room.
  • Messaging uses script tags to prevent cross-site Scripting (XSS) vulnerabilities

A link to my repository 'In the heart of node' is also included as link. This repository provides an overview about NodeJS advanced features like: event emitters, custom events, streams (duplex, transform)...

Medias

Links

Logo Github

Github repository:

node-socket-io-chat

Logo Github

Github repository:

in-the-heart-of-node