Skip to content

Commit

Permalink
Readme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Jun 28, 2011
1 parent f2212f6 commit c9bf814
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Socket.IO

Socket.IO is a Node.JS project that makes WebSockets and realtime possible in
Expand Down Expand Up @@ -89,7 +88,7 @@ io.sockets.on('connection', function (socket) {
});

socket.on('msg', function () {
socket.get('nickname', function (name) {
socket.get('nickname', function (err, name) {
console.log('Chat message by ', name);
});
});
Expand Down Expand Up @@ -277,7 +276,7 @@ Simply leverage `send` and listen on the `message` event:
#### Server side
```js
var io = require('socket.io-node').listen(80);
var io = require('socket.io').listen(80);

io.sockets.on('connection', function (socket) {
socket.on('message', function () { });
Expand Down Expand Up @@ -307,7 +306,7 @@ Configuration in socket.io is TJ-style:
#### Server side
```js
var io = require('socket.io-node').listen(80);
var io = require('socket.io').listen(80);

io.configure(function () {
io.set('transports', ['websocket', 'flashsocket', 'xhr-polling']);
Expand Down

0 comments on commit c9bf814

Please sign in to comment.