README.md in wamp_client-0.0.6 vs README.md in wamp_client-0.0.7
- old
+ new
@@ -6,10 +6,12 @@
Client for talking to a WAMP Router. This is defined [here](https://tools.ietf.org/html/draft-oberstet-hybi-tavendo-wamp-02)
## Revision History
+ - v0.0.7:
+ - Added 'session' to the 'details' in the callbacks and handlers
- v0.0.6:
- Added call cancelling
- Added call timeout
- v0.0.5:
- Fixed issue where excluding the 'authmethods' and 'authid' was setting their values to none rather
@@ -179,11 +181,13 @@
#### Handlers
All handlers are called with the following parameters
- args [Array] - Array of arguments
- kwargs [Hash] - Hash of key/value arguments
- - details [Hash] - Hash containing some details about the call
+ - details [Hash] - Hash containing some details about the call. Details include
+ - session [WampClient::Session] - The session
+ - etc.
Some examples of this are shown below
**lambda**
@@ -206,10 +210,13 @@
#### Callbacks
All callbacks are called with the following parameters
- result [Object] - Some object with the result information (depends on the call)
- error [Hash] - Hash containing "error", "args", and "kwargs" if an error occurred
- - details [Hash] - Hash containing some details about the call
+ - details [Hash] - Hash containing some details about the call. Details include
+ - type [String] - The type of message
+ - session [WampClient::Session] - The session
+ - etc.
An example of this is shown below
```ruby
session.call('com.example.procedure') do |result, error, details|