diff --git a/Readme.md b/Readme.md index 42856cebe2..35b5b2fdd0 100644 --- a/Readme.md +++ b/Readme.md @@ -9,9 +9,6 @@ horizontal scalability, automatic JSON encoding/decoding, and more. npm install socket.io -**Note:** this is the documentation for the upcoming release **0.7**. The latest -tag on NPM is [0.6](https://github.com/LearnBoost/Socket.IO-node/tree/06). - ## How to use First, require `socket.io`: @@ -30,7 +27,10 @@ var app = express.createServer(); app.listen(80); io.sockets.on('connection', function (socket) { - socket.send({ hello: 'world' }); + socket.emit('news', { hello: 'world' }); + socket.on('my other event', function (data) { + console.log(data); + }); }); ``` @@ -40,8 +40,9 @@ Finally, load it from the client side code: ``` @@ -318,8 +319,6 @@ io.configure('development', function () { }); ``` -## [API docs](http://socket.io/api.html) - ## License (The MIT License)