Class: Wamp::MessageHandler::Register

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

Overview

publish event to subscriber

Instance Attribute Summary

Attributes inherited from Base

#connection, #message

Instance Method Summary collapse

Methods inherited from Base

#handle, #initialize

Constructor Details

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

Instance Method Details

#send_message(handler, &callback) ⇒ Object



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

def send_message(handler, &callback)
  store[store_key] = { handler: handler, callback: callback, procedure: message.procedure }

  send_serialized message
end