/drawchat

A socket.io enabled simple webpage that allows multiple users to chat and draw at the same time. Can display live-time sentiment analysis on chat messages.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

drawchat

A socket.io enabled app that allows multiple users to chat and draw at the same time. Meanwhile, a sentiment analysis is performed underneath. This is the winning app for 2020 Wallifornia E-sports category. Thanks to Andrew, Lyle, and Verah.

To start in command line: node index.js

dependencies:

  • npm install sentiment
  • npm install socket.io
  • npm install express

Type http://localhost:3000/ in your web browser and it will run on local host.

Will see server console messages logging who is connected and disconnected, also their messages.

Credit to:

Areas of improvement:

  • incoporate a fadeOut() function that can "erase" automatically the drawing after a short amount of time. But the chat message window will be blocked when fadeOut() is enabled.

  • can't get the color palette shown on the webpage.

Now sentiment analysis can be performed on the fly on the live chat data using this feature https://github.com/thisandagain/sentiment#testing

The sentiment score for every sentence and the total average score, along with moving average (average for every five messages) can be shown in the console and on the webpage! An emoji icon will indicate the sentiment (happy, sad, or neutral).

Happy chatting/drawing!