Sha256: 7d7da8f9f96a0c26771fe2c45017b825d11cb973623e6b6aa74e7d0622849081

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

module Wamp
  module MessageHandler
    # Call handler with error message
    class Error < Base
      def handle
        validate_received_message

        stored_data[:callback].call(response)
      end

      def response
        Type::Error.new(uri: message.error, details: message.details)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xconn-0.1.2 lib/wamp/message_handler/error.rb
xconn-0.1.1 lib/wamp/message_handler/error.rb
xconn-0.1.0 lib/wamp/message_handler/error.rb