lib/wamp/client/request/base.rb
# Called when the response was a success
#
Called when the response was a success
Called when the response was a success
def success(message)
          request_id = message.request_id
          lookup = self.requests[request_id]
          callback, result, details, should_keep = self.process_success(message, lookup)
          if callback and details
            details[:session] = self.session
            callback.call(result, nil, details) if callback
          end
          self.requests.delete(request_id) unless should_keep
        end
def success ( message ) request_id = message . request_id lookup = self . requests [ request_id ] callback , result , details , should_keep = self . process_success ( message , lookup ) if callback and details details [ :session ] = self . session callback . call ( result , nil , details ) if callback end self . requests . delete ( request_id ) unless should_keep end
Called when the response was a success
Called when the response was a success
# Get the request_id # Get the lookup # Parse the result # Add items to details # Call the callback # Delete if "should_keep" if false
message
<not_specific>