Sha256: f04463df394053268259f73f68e6c4f07c261e993291d0a6f26e84cd305551b3
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true module Wamp module Manager # connection class Connection < Connection::Base attr_reader :session def initialize(*args) super @session = Session.new(self) end def on_message(data) message = Message.resolve(coder.decode(data)) session.on_message(message) end def on_open send_hello_message end private def send_hello_message message = Message::Hello.new(@realm, auth.details) manager = Manager::Event::Hello.new(message, self) manager.add_event_listener # adds on :join event listener end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xconn-0.1.2 | lib/wamp/manager/connection.rb |
xconn-0.1.1 | lib/wamp/manager/connection.rb |
xconn-0.1.0 | lib/wamp/manager/connection.rb |