SymbianSyMoh / chatio

Real-time apps using Node.js & Socket.io

Home Page:https://chatio-alcrazy.c9.io/

Repository from Github https://github.comSymbianSyMoh/chatioRepository from Github https://github.comSymbianSyMoh/chatio

chatio

Chat.IO app using node.js and socket.io

Libraries used

  • node.js / npm
  • socket.io
  • express
  • node-uuid
  • underscore
  • ejs

Functionality

  1. People are able to join the chat server after entering their names
  2. Usernames are unique - if a username is taken, a new suggestion is generated
  3. User agent and geo location are both detected
  4. People can setup a room. Room names are unique. One person can create on room and join one room
  5. Users have to join a room to chat, except for the whisper feature.
  6. Whisper messages are private messages sent between two users
  7. With a WebSpeech enabled browsers, users can record their messages
  8. Users can leave a room and/or disconnect from the server anytime
  9. People joining the room will see the past 10 messages (chat history).
  10. People will see an 'is typing' message when someone is typing a message.

Setup and configuration

Make sure that you update index.js:

server.listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});

and add your own IP address/hostname if required, i.e.:

server.listen(app.get('port'), "192.168.0.6", function(){
  console.log('Express server listening on port ' + app.get('port'));
});

(the port is defined in the app.set('port', process.env.PORT || 3000); section.)

Please also update public/js/client.js:

var socket = io.connect("192.168.0.6:3000");

with the right IP address/hostname.

To install npm install && bower install and to launch run npm start.

Private Message

To send a 'private' message, use the following format in the chat message input box: w:USERNAME:MESSAGE (where 'USERNAME' is the exact name of the user who you wish to whisper to (case-sensitive). For your convenience you can use the whipser link next to the person's username on the left hand side.)

Now Visit DEMO: https://chatio-alcrazy.c9.io/

About

Real-time apps using Node.js & Socket.io

https://chatio-alcrazy.c9.io/


Languages

Language:JavaScript 58.7%Language:CSS 32.2%Language:HTML 9.0%Language:Shell 0.1%