Skip to content

Commit

Permalink
document that history / presence are WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Jan 16, 2013
1 parent f9850f6 commit 54b53e3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,17 @@ subscribed
published.write({ some: "data" }) published.write({ some: "data" })
``` ```


## Api surface

- publish
- subscribe
- duplex

## Work in progress

- history
- presence

## Known issues ## Known issues


- Sometimes you get the same published message multiple times - Sometimes you get the same published message multiple times
Expand Down
2 changes: 2 additions & 0 deletions history.js
Expand Up @@ -3,6 +3,8 @@ var ReadStream = require("read-stream")
module.exports = history module.exports = history


function history(client, channel, limit) { function history(client, channel, limit) {
throw new Error("not implemented / tested")

var queue = ReadStream() var queue = ReadStream()


client.history({ client.history({
Expand Down
2 changes: 2 additions & 0 deletions presence.js
Expand Up @@ -11,6 +11,8 @@ var EXPIRY_SUFFIX = "-expmodel"
module.exports = presence module.exports = presence


function presence(client, channel, options) { function presence(client, channel, options) {
throw new Error("not implemented / tested")

var model = ExpiryModel(options) var model = ExpiryModel(options)


var presenceStream = subscribe(client, channel + PRESENCE_SUFFIX) var presenceStream = subscribe(client, channel + PRESENCE_SUFFIX)
Expand Down

0 comments on commit 54b53e3

Please sign in to comment.