Skip to content

Commit

Permalink
updated welcome message to display the room name the user has joined
Browse files Browse the repository at this point in the history
  • Loading branch information
bhubie committed Jul 22, 2017
1 parent 991c44a commit 427b431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ io.on('connection', (socket) => {

io.to(params.room).emit('updateUserList', users.getUserList(params.room));

socket.emit('newMessage', generateMessage('Admin', 'Welcome to the Chat app'));
socket.emit('newMessage', generateMessage('Admin', `Welcome to the Chat Room ${params.room}`));
socket.broadcast.to(params.room).emit('newMessage', generateMessage('Admin', `${params.name} has joined!`));

callback();
Expand Down

0 comments on commit 427b431

Please sign in to comment.