Chat.IO app using node.js and socket.io
[ Socket.IO :: ExpressJS :: node-uuid :: underscore :: ejs ]
- People are able to join the chat server after entering their names
- Usernames are unique - if a username is taken, a new suggestion is generated
- People can setup a room. Room names are unique. One person can create on room and join one room
- Users have to join a room to chat, except for the Private Message feature.
- 'Private Messages' can use private messages between two users
- Users can leave a room and/or disconnect from the server anytime
- People joining the room will see the past 10 messages (chat history).
- People will see an 'is typing' message when someone is typing a message.
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.1.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.1.6:3000");
with the right IP address/hostname.
open the terminal and type:
$ npm install && bower install
and to launch run
$ npm start
Now Visit Chat.IO DEMO
Version(s) | Download(s) | Date |
---|---|---|
chat.io.v0.1.1.tar.gz | Download | 19-03-2015 |
chat.io.v0.1.0.tar.gz | Download | 15-03-1015 |