lib/wamp/client/manager/establish.rb
# Will attempt to join a router
#
Will attempt to join a router
Will attempt to join a router
def join(realm)
          self.realm = realm
          details = {}
          details[:roles] = WAMP_FEATURES
          details[:agent] = "Ruby-Wamp::Client-#{VERSION}"
          details[:authid] = self.session.options[:authid] if self.session.options[:authid]
          details[:authmethods] = self.session.options[:authmethods] if self.session.options[:authmethods]
          hello = Message::Hello.new(realm, details)
          send_message(hello)
        end
def join ( realm ) self . realm = realm details = { } details [ :roles ] = WAMP_FEATURES details [ :agent ] = "Ruby-Wamp::Client-#{VERSION}" details [ :authid ] = self . session . options [ :authid ] if self . session . options [ :authid ] details [ :authmethods ] = self . session . options [ :authmethods ] if self . session . options [ :authmethods ] hello = Message :: Hello . new ( realm , details ) send_message ( hello ) end
Will attempt to join a router
Will attempt to join a router
# Set the realm # Create the details # Create the message # Send it
realm
<not_specific>