Browse files

Fixed readme [getify]

  • Loading branch information...
1 parent dfa350b commit 6d57445167f3982bbb511bb24077545bf1a020bb @rauchg rauchg committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Readme.md
View
2 Readme.md
@@ -222,7 +222,7 @@ io.sockets.on('connection', function (socket) {
```html
<script>
var socket = io.connect(); // TIP: .connect with no args does auto-discovery
- socket.on('connection', function () {
+ socket.on('connect', function () {
socket.emit('ferret', 'tobi', function (data) {
console.log(data); // data will be 'woot'
});

0 comments on commit 6d57445

Please sign in to comment.