Skip to content

Commit

Permalink
[docs] Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Jul 18, 2012
1 parent 2748fa1 commit abc7320
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
@@ -1,8 +1,7 @@
# Experimental / Unreleased

# sockful

[![Build Status](https://secure.travis-ci.org/flatiron/sockful.png)](http://travis-ci.org/flatiron/sockful)

Creates [socket.io](http://socket.io) servers and event maps for [resourceful](http://github.com/flatiron/resourceful) resources. Can be used as a stand-alone module or as a [Flatiron](http://github.com/flatiron/) plugin.

# Explanation
Expand Down Expand Up @@ -52,13 +51,13 @@ socket.emit('creature', 'create', { id: 'bob' } , function(err, bob) {
};
```
Socket Event Action
Socket Event Action
socket.emit('creature', 'create', data, callback) => Creature.create()
socket.emit('creature', 'get', data, callback) => Creature.get()
socket.emit('creature', 'all', data, callback) => Creature.all()
socket.emit('creature', 'update', data, callback) => Creature.update()
socket.emit('creature', 'destroy', data, callback) => Creature.destroy()
socket.emit('creature', 'create', data, callback) => Creature.create()
socket.emit('creature', 'get', data, callback) => Creature.get()
socket.emit('creature', 'all', data, callback) => Creature.all()
socket.emit('creature', 'update', data, callback) => Creature.update()
socket.emit('creature', 'destroy', data, callback) => Creature.destroy()
The socket server will delegate all incoming Creature events to the resource and respond back with the appropriate result.
Expand Down Expand Up @@ -117,6 +116,7 @@ There are several ways to provide security and authorization for accessing resou
- Full `resourceful` property type support ( numeric, boolean, array, object )
- Full `resourceful` nested property schema support
- Better browser / isomorphic support
- Add ability to specify schemas for remote method argument payloads
- Improve Tests
- Add better error support via `errs` library

0 comments on commit abc7320

Please sign in to comment.