Skip to content

Commit

Permalink
Merge pull request socketio#869 from MrSwitch/master
Browse files Browse the repository at this point in the history
Small change to demo copy
  • Loading branch information
rauchg committed May 3, 2012
2 parents 39671e8 + 4e13cfb commit 3b9715e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ io.sockets.on('connection', function (socket) {
var socket = io.connect('http://localhost');
socket.on('connect', function () {
socket.emit('set nickname', confirm('What is your nickname?'));
socket.emit('set nickname', prompt('What is your nickname?'));
socket.on('ready', function () {
console.log('Connected !');
socket.emit('msg', confirm('What is your message?'));
socket.emit('msg', prompt('What is your message?'));
});
});
</script>
Expand Down

0 comments on commit 3b9715e

Please sign in to comment.