Class: Wamp::MessageHandler::Published

Inherits:
Base
  • Object
show all
Defined in:
lib/wamp/message_handler/published.rb

Overview

Published confirmation message

Instance Attribute Summary

Attributes inherited from Base

#connection, #message

Instance Method Summary collapse

Methods inherited from Base

#initialize, #send_message

Constructor Details

This class inherits a constructor from Wamp::MessageHandler::Base

Instance Method Details

#handleObject



7
8
9
10
11
# File 'lib/wamp/message_handler/published.rb', line 7

def handle
  validate_received_message

  deliver_response(response)
end

#responseObject



13
14
15
# File 'lib/wamp/message_handler/published.rb', line 13

def response
  Type::Publication.new(publication_id: message.publication_id)
end