Sha256: 36dcda35a2b9856a351bfb5f69a55a96ac7b0f50be69132bd9e3853c5aecbdcd

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require_relative "base"
require "openssl"

module Wamp
  module Manager
    module Event
      # Welcome Message Event
      class Challenge < Base
        def emit_event_name
          :challenge
        end

        def emit_event(challenge)
          session.emit(emit_event_name, challenge)
          send_authenticate(session.authenticate(challenge))
        end

        def send_authenticate(authenticate)
          session.transmit(authenticate.payload)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xconn-0.1.2 lib/wamp/manager/event/challenge.rb
xconn-0.1.1 lib/wamp/manager/event/challenge.rb
xconn-0.1.0 lib/wamp/manager/event/challenge.rb