Skip to content

Commit

Permalink
Fix for client side namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jun 28, 2011
1 parent 4e4199c commit a00ce7e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,8 @@ var news = io
```html
<script>
var socket = io.connect('http://localhost/')
, chat = socket.of('/chat')
, news = socket.of('/news');
var chat = io.connect('http://localhost/chat')
, news = io.connect('http://localhost/news');

chat.on('connect', function () {
chat.emit('hi!');
Expand Down
16 changes: 16 additions & 0 deletions lib/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,22 @@ exports.Socket = require('./socket');

exports.Store = require('./store');

/**
* Memory Store constructor.
*
* @api public
*/

exports.MemoryStore = require('./store/memory');

/**
* Redis Store constructor.
*
* @api public
*/

exports.RedisStore = require('./store/redis');

/**
* Parser.
*
Expand Down

0 comments on commit a00ce7e

Please sign in to comment.