Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Small change to demo copy #869

Merged
merged 1 commit into from

2 participants

@MrSwitch

Changed to 'prompt' so they can insert their names. Otherwise just sets true on the server

Andrew Dodson Update copy 4e13cfb
@rauchg rauchg merged commit 3b9715e into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 3, 2012
  1. Update copy

    Andrew Dodson authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 Readme.md
View
4 Readme.md
@@ -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>
Something went wrong with that request. Please try again.