Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[docs] Updating README

  • Loading branch information...
commit 8ef6785bfbeb1cfadb416f47a203b96a6fedf02c 1 parent e10aad5
@Marak Marak authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
12 README.md
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.