- node.js / npm
- socket.io
- express
- 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
- User agent and geo location are both detected
- 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 whisper feature.
- Whisper messages are private messages sent between two users
- With a WebSpeech enabled browsers, users can record their messages
- Users can leave a room and/or disconnect from the server anytime
Make sure that you update server.js:
server.listen(3000, "192.168.56.102", function(){ console.log("Express server up and running."); });
and add your own IP address/hostname.
Please also update public/js/client.js:
var socket = io.connect("192.168.56.102:3000");
with the right IP address/hostname.
To install npm install && bower install
and to launch run npm start
.
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.)
New up to date post:
Previous articles related to this topic: