Permalink
Browse files

[docs] Updating README

  • Loading branch information...
Marak committed Jul 18, 2012
1 parent e10aad5 commit 8ef6785bfbeb1cfadb416f47a203b96a6fedf02c
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
@@ -53,13 +53,13 @@ socket.emit('creatures', 'create', { id: 'bob' } , function(err, bob) {
};
```
```
-Socket.io Event Action
+Socket Resource Action Payload Callback Resource Method
-socket.emit('creatures', 'create', data, callback) => Creature.create()
-socket.emit('creatures', 'get', data, callback) => Creature.get()
-socket.emit('creatures', 'all', data, callback) => Creature.all()
-socket.emit('creatures', 'update', data, callback) => Creature.update()
-socket.emit('creatures', 'destroy', data, callback) => Creature.destroy()
+socket.emit('creatures', 'create', data, callback) => Creature.create()
+socket.emit('creatures', 'get', data, callback) => Creature.get()
+socket.emit('creatures', 'all', data, callback) => Creature.all()
+socket.emit('creatures', 'update', data, callback) => Creature.update()
+socket.emit('creatures', 'destroy', data, callback) => Creature.destroy()
```
The socket.io server will delegate all incoming `Creature` events to the resource and respond back with the appropriate result.

0 comments on commit 8ef6785

Please sign in to comment.