Skip to content

Commit

Permalink
Wrote more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Burkalev authored and Konstantin Burkalev committed Feb 9, 2014
1 parent 4fcc492 commit 0553607
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ unprefix(prefix)

Remove previously saved prefix. Supports chaining.

```javascript
ws.unprefix('admin');
ws.unprefix('chat');
```

[Back to TOC](#table-of-contents)

call(procURI, callbacks[, param1, param2, ...])
Expand Down Expand Up @@ -254,9 +259,9 @@ Can be in forms of:
* prefix-form: admin:addUser
* event data to send. Any valid object/string/number.
* exclude parameter can be in two forms:
* bool (true|false) - to exclude sender for receiving this event (in case sender is subscribed to this topic).
* bool (true / false) - to exclude sender for receiving this event (in case sender is subscribed to this topic).
* array of wamp session ids, which should be excluded from receiving event.
* eligible parameter is array of wamp session ids, which should receive event.
* eligible parameter is array of wamp session ids, only which should receive event.

```javascript
ws.publish('test:subscribe1', 'string data');
Expand Down

0 comments on commit 0553607

Please sign in to comment.