Skip to content

Commit

Permalink
Fixed readme [getify]
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Oct 5, 2011
1 parent dfa350b commit 6d57445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});
Expand Down

0 comments on commit 6d57445

Please sign in to comment.