Method: WAMP::Server#initialize
- Defined in:
- lib/wamp/server.rb
#initialize(options = {}) ⇒ Server
Returns a new instance of Server.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/wamp/server.rb', line 10 def initialize( = {}) @options = @options[:engine] ||= {} @options[:engine][:type] ||= :memory @topics = {} @callbacks = {} @engine = WAMP::Engines.const_get(camelize(@options[:engine][:type])).new(@options[:engine]) @protocol = WAMP::Protocols::Version1.new end |